/getcar command
#9

Thanks again for all the help, I'm going to try again and I wll keep you up to date

#And yet again I am stuck
Код:
if(strcmp(cmd, "/getcar", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /getcar [carid]");
				return 1;
			}
			new testcar = strval(tmp);
			if (PlayerInfo[playerid][pAdmin] >= 3)
			{
				new Float:plocx,Float:plocy,Float:plocz;
	      GetPlayerPos(playerid, plocx, plocy, plocz);
				PutPlayerInVehicle(playerid, testcar, 0);
				SendClientMessage(playerid, COLOR_GRAD1, "  You have been teleported");
				SetVehiclePos (vehicleid, plocx, plocy, plocz);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "  you are not authorized to use that command!");
			}
		}
		return 1;
	}
Tried what you all said, but I can't get it to work. If anyone got some spare time I would appriciate if you could look into this.
Thanks again.
Reply


Messages In This Thread
/getcar command - by Rickk - 20.07.2009, 22:50
Re: /getcar command - by Sergei - 20.07.2009, 22:55
Re: /getcar command - by Weirdosport - 20.07.2009, 23:01
Re: /getcar command - by yezizhu - 20.07.2009, 23:23
Re: /getcar command - by Rickk - 21.07.2009, 11:34
Re: /getcar command - by woot - 21.07.2009, 11:43
Re: /getcar command - by yezizhu - 21.07.2009, 12:30
Re: /getcar command - by [top_Shoter] - 21.07.2009, 13:53
Re: /getcar command - by Rickk - 22.07.2009, 15:16

Forum Jump:


Users browsing this thread: 1 Guest(s)