Так. Здоровались уже, вот еще одна команда, может кому нужна. Она добовляет любой 3д текст на автомобилем.
Добовляем в new:
Code
new Text3D:Numbertext[MAX_VEHICLES]
И OnPlayerCommandText
Code
if (strcmp(cmd, "/cartext", true) == 0)
{
new text_car[256];
if(IsPlayerConnected(playerid))
{
new v = GetPlayerVehicleID(playerid);
if(v == PlayerInfo[playerid][pCarKey2] || v == PlayerInfo[playerid][pCarKey])
{
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, Введите: /cartext [text] ");
return 1;
}
format(text_car,sizeof(text_car),"%s",result);
Numbertext[v] = Create3DTextLabel(text_car,COLOR_WHITE1,0.0,0.0,0.0,15.0,0);
Attach3DTextLabelToVehicle(Numbertext[v],v,0.0,0.0,1.0);
OnPlayerUpdate(playerid);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, " ");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/deltext", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new v = GetPlayerVehicleID(playerid);
Delete3DTextLabel(Numbertext[v]);
}
return 1;
}
Вот вроде все, пользуйтесь на здоровье! Вырезано из Реал Гейм.