pawn Code:
CMD:veh(playerid, params[])
{
new cor1,cor2,Veh,carid
if (sscanf(params, "ddd",carid,cor1,cor2))
{
SendClientMessage(playerid, -1, "Use: /veh [carid] [cor1] [cor2]");
}
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);
PutPlayerInVehicle(playerid, Veh, 0);
format(pp, sizeof(pp), "O admin %s o criou um carro(ID DO CARRO %d )", Nome(playerid),carid);
SendClientMessageToAll(-1, pp);
}
return true;
}