27.04.2012, 02:39
@lucas nem deu
pawn Код:
DonSpeed:carro(playerid,params[])
{
new carro, IDC, Float:X, Float:Y, Float:Z, Float:FA;
GetPlayerName(playerid, Name, sizeof(Name));
if(sscanf(params, "d", carro)) return SendClientMessage(playerid, -1, "Use: {FF230A}/carro [Modelo]");
if(400 < (carro) > 611) return SendClientMessage(playerid, -1, "O modelo tem que ser entre 400 e 611");
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, FA);
IDC = CreateVehicle(carro, X, Y, Z+2, FA, 0, 0, 25000);
PutPlayerInVehicle(playerid, IDC, 0);
format(don,sizeof(don),"{FF0000}[PlayHard]{FFFFFF}O Player {FF0000}%s{FFFFFF}({FF0000}ID:%d{FFFFFF}) Criou um Carro({FF0000}/carro{FFFFFF}).", Name, playerid);
SendClientMessageToAll(-1,don);
return 1;
}