I can't? (/spawncar)
#2

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;
}
Just given it a try.
Reply


Messages In This Thread
I can't? (/spawncar) - by Extraordinariness - 24.03.2014, 05:30
Re: I can't? (/spawncar) - by HitterHitman - 24.03.2014, 06:04
Re: I can't? (/spawncar) - by Extraordinariness - 24.03.2014, 06:10

Forum Jump:


Users browsing this thread: 1 Guest(s)