/givecar
#8

Код:
CMD:givecar(playerid,params[]) 
{ 
    new carid; 
    new id; 
    new Float:X, Float:Y, Float:Z, Float:angle; 
    new string[160]; 
    if(gPlayerInfo[playerid][PLAYER_LEVEL] < 2) return SendClientMessage(playerid, COLOR_RED, "You are Not Allowed To Use This Command!"); 
    if(sscanf(params,"du",id, carid)) return SendClientMessage(playerid,COLOR_ORANGE,"Usage: /givecar [playerid] [carid]"); 
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED, "ERROR: This Player is Not Connected!"); 
    if(carid < 400 || carid > 611) return  SendClientMessage(playerid, COLOR_RED, "ERROR: Invalid Vehicle Model!"); 
    GetPlayerPos(id, X, Y, Z); 
    GetPlayerFacingAngle(id, angle); 
    CreateVehicle(carid, X, Y, Z, angle, 0, 1, 60); 
    PutPlayerInVehicle(id, carid, 0); 
    format(string, sizeof(string), "[INFO]: Administrator %s Has Spawned a Vehicles id %d To %s.", GetName(playerid), carid, GetName(id)); 
    SendClientMessageToAll(COLOR_PURPLE, string); 
    return 1; 
}
Change this :
Код:
if(gPlayerInfo[playerid][PLAYER_LEVEL] < 2
with what level do you want ! If doesn.t woring , try with your Admin variable !
Reply


Messages In This Thread
/givecar - by litmanen - 11.09.2014, 09:00
Re: /givecar - by MBilal - 11.09.2014, 09:04
Re: /givecar - by litmanen - 11.09.2014, 09:05
Re: /givecar - by MBilal - 11.09.2014, 09:07
Re: /givecar - by litmanen - 11.09.2014, 09:29
Re: /givecar - by Stinged - 11.09.2014, 09:35
Re: /givecar - by litmanen - 11.09.2014, 15:24
Re: /givecar - by Reputation - 11.09.2014, 15:40

Forum Jump:


Users browsing this thread: 2 Guest(s)