03.03.2013, 01:17
Galera,oque estб de errado nesse comando?Ele nгo estб criando o carro :/
pawn Code:
CMD:veh(playerid, params[])
{
new cor1,cor2,Veh;
if (sscanf(params, "us",id,cor1,cor2))
{
SendClientMessage(playerid, -1, "Use: /ir [id] [cor 1] [cor 2]");
}
else
{
if (Admin[playerid] == 0) return SendClientMessage(playerid, 2, "Vocк nгo й Admin!");
new pp[128],Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
Veh = CreateVehicle(id,X,Y,Z,0.0,cor1,cor2,60000);
format(pp, sizeof(pp), "O admin %s o criou um carro(ID DO CARRO %d )", Nome(playerid),Veh);
SendClientMessageToAll(-1, pp);
}
return true;
}