18.05.2012, 16:58
pawn Код:
CMD:carro(playerid, params[])
{
new id, cid, Float:c[5], cor1, cor2;
if(PlayerInfo[playerid][mAdmin] < 1) return SendClientMessage(playerid, VERMELHO, falha);
if(sscanf(params, "dddd", id, cid, cor1, cor2)) return SendClientMessage(playerid, BRANCO, "[INFO] /carro [id] [carid] [cor1] [cor2]");
{
GetPlayerPos(id, c[0], c[1], c[2]);
CreateVehicle(cid, c[0], c[1], c[2], c[2], cor1, cor2, 6000);
}
return 1;
}