24.03.2014, 06:04
(
Последний раз редактировалось HitterHitman; 24.03.2014 в 07:24.
)
pawn Код:
CMD:spawncar(playerid, params[])
{
new carid, string1[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You do not have the privilege to access this command!");
if(sscanf(params,"d", carid)) return SendClientMessage(playerid, 0xFF0000FF,"USAGE: /spawncar [id]");
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
AddStaticVehicle(carid, x, y, z, 0, 0, 0);
format(string1, sizeof(string1), "You have spawned car id %d.", carid);
SendClientMessage(playerid, 0xFF0000FF, string1);
return 1;
}