location >
#11

Try this :
Код:
	if(strcmp(cmd, "/gotoxyz", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "Usage: /gotoxyz [X] [Y] [Z]");
				return 1;
			}
			new Float:para1;
			new Float:para2;
			new Float:para3;
			para1 = strval(tmp);
			tmp = strtok(cmdtext, idx);
			para2 = strval(tmp);
			tmp = strtok(cmdtext, idx);
			para3 = strval(tmp);

			if(PlayerInfo[playerid][pAdmin] >= 3)
			{
				if (GetPlayerState(playerid) == 2)
				{
					new tmpcar = GetPlayerVehicleID(playerid);
					SetVehiclePos(tmpcar, para1,para2,para3);
					TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
				}
				else
				SetPlayerPos(playerid, para1,para2,para3);
				SendClientMessage(playerid, COLOR_GREEN, "You have been teleported");
				PlayerInfo[playerid][pInt] = 0;
			}
			else
			{
				SendClientMessage(playerid, COLOR_RED, "You don't have permission !");
			}
		}
		return 1;
	}
Reply


Messages In This Thread
location > - by davelord - 02.04.2011, 17:26
Re: location > - by sansko - 02.04.2011, 17:27
Re: location > - by davelord - 02.04.2011, 17:28
Re: location > - by -Rebel Son- - 02.04.2011, 17:29
Re: location > - by Vince - 02.04.2011, 17:29
Re: location > - by Sascha - 02.04.2011, 17:30
Re: location > - by davelord - 02.04.2011, 17:30
Re: location > - by davelord - 02.04.2011, 17:33
Re: location > - by -Rebel Son- - 02.04.2011, 17:33
Re: location > - by davelord - 02.04.2011, 17:37
Re: location > - by Petru_Me - 02.04.2011, 17:38
Re: location > - by davelord - 02.04.2011, 17:39
Re: location > - by -Rebel Son- - 02.04.2011, 17:40
Re: location > - by davelord - 02.04.2011, 17:41
Re: location > - by -Rebel Son- - 02.04.2011, 17:42
Re: location > - by davelord - 02.04.2011, 17:50
Re: location > - by sansko - 02.04.2011, 17:58

Forum Jump:


Users browsing this thread: 3 Guest(s)