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;
}
CMD:carro(playerid, params[])
{
new id, cid, Float:c[3], 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, -1);
}
return 1;
}
CreateVehicle(cid, c[0], c[1], c[2], 0.0, cor1, cor2, 6000);
Tenta:
pawn Код:
|
if(sscanf(params, "ddd", cid, cor1, cor2)) return SendClientMessage(playerid, BRANCO, "[INFO] /carro [carid] [cor1] [cor2]");