pawn Код:
CMD:bullet(playerid, params[])
{
new carro, cor1, cor2,
Float:X, Float:Y, Float:Z, Float:Angle;
if(sscanf(params, "dd", cor1, cor2)) return SendClientMessage(playerid, -1, "Digite: /bullet [cor1] [cor2]");
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Saia deste veнculo para criar outro.");
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
carro = AddStaticVehicleEx(541, X, Y, Z, Angle, cor1, cor2, 30);
PutPlayerInVehicle(playerid, carro, 0);
LinkVehicleToInterior(carro, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(carro, GetPlayerVirtualWorld(playerid));
}
return 1;
}