23.07.2014, 14:50
pawn Код:
command(textcar, playerid, params []);
{
new txt[28];
new TextoCarro[130];
if(IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid, -1, "[ x ] Vocк nгo estб em um veнculo.");
if(sscanf(params, "s[130]", texto)) return SendClientMessage(playerid,-1,"[ x ] Uso correto: /textcar [Texto]");
if(strlen(texto) > 20) return SendClientMessage(playerid, -1, "[ x ] Digite no mбximo 15 caracteres");
format( txt, sizeof (txt), "[ > ] Vocк alterou o nome do seu veiculo para: {FFFFFF}%s",texto);
SendClientMessage(playerid, -1, txt);
TextoCarro = Create3DTextLabel(texto,-1,0.0,0.0,0.0,30.0,0);
Attach3DTextLabelToVehicle(TextoCarro,c,0.0,0.0,0.2)
return 1;
}