Admin command help D:
#1

hey guys what is the problem in this admin command because i got 9 warnings :P actually how i will make a vehicle front of the player who asked it btw here is the command and tell me what is wrong D:
pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "ERROR:Only Admins can use this command for cars /carmenu!");
   if(strcmp(cmd,"/nrg", true) ==0){
   
   if(IsPlayerInAnyVehicle(playerid))
   SendClientMessage(playerid, COLOR_RED, "ERROR:You are already in a vehicle..!");
   else
   {
   new vehicleid= GetPlayerVehicleID(playerid);
   new Float:x, Float:y, Float:z;
   GetPlayerPos(playerid, x, y, z);
   CreateVehicle(522, x,y,z,0,0);
   SetVehiclePos(vehicleid, GetPlayerPos(playerid));
   PutPlayerInVehicle(playerid, 522,0);
   SendClientMessage(playerid, COLOR_YELLOW, "Your Personal Nrg has been created!");
   GameTextForPlayer(playerid, "~w~personal ~b~n~g~r~p~g ~w~ is ~y~created~w~!!!",3000,5);
}
Reply


Messages In This Thread
Admin command help D: - by vassilis - 02.11.2011, 13:58
Re: Admin command help D: - by KaleOtter - 02.11.2011, 14:05
Re: Admin command help D: - by SmiT - 02.11.2011, 14:06
Re: Admin command help D: - by SuperViper - 02.11.2011, 14:07
Re: Admin command help D: - by vassilis - 02.11.2011, 14:10
Re: Admin command help D: - by SmiT - 02.11.2011, 14:11
Re: Admin command help D: - by vassilis - 02.11.2011, 14:13
Re: Admin command help D: - by SmiT - 02.11.2011, 14:15
Re: Admin command help D: - by vassilis - 02.11.2011, 15:44
Re: Admin command help D: - by Kostas' - 02.11.2011, 16:08

Forum Jump:


Users browsing this thread: 6 Guest(s)