/gotopos | /gotocoords
#2

Код:
CMD:gotopos(playerid,params[]) 
{
	new
	  Float:pos1,
	  Float:pos2,
	  int;
	if(sscanf(params,"fffd",floatstr(params),pos1,pos2,int)) return SendClientMessage(playerid,color,"USAGE: /gotopos [x] [y] [z] [interiorid]");
	if(IsPlayerInAnyVehicle(playerid))
	{
		SetVehiclePos(GetPlayerVehicleID(playerid),floatstr(params),pos1,pos2);
		LinkVehicleToInterior(GetPlayerVehicleID(playerid),int);
	}
  else
  {
		SetPlayerPos(playerid,floatstr(params),pos1,pos2);
		SetPlayerInterior(playerid,int);
	}
  return 1;
}
Next time SEARCH.
Reply


Messages In This Thread
/gotopos | /gotocoords - by iKevin - 01.01.2016, 18:02
Re: /gotopos | /gotocoords - by Crystallize - 01.01.2016, 18:21
Re: /gotopos | /gotocoords - by saffierr - 01.01.2016, 18:32
Re: /gotopos | /gotocoords - by iKevin - 01.01.2016, 19:06
Re: /gotopos | /gotocoords - by Crystallize - 01.01.2016, 19:39
Re: /gotopos | /gotocoords - by iKevin - 01.01.2016, 23:05
Re: /gotopos | /gotocoords - by ThomasEvil - 27.03.2017, 20:28
Re: /gotopos | /gotocoords - by Dayrion - 27.03.2017, 21:15
Re: /gotopos | /gotocoords - by Unte99 - 27.03.2017, 21:46
Re: /gotopos | /gotocoords - by Dayrion - 27.03.2017, 21:48

Forum Jump:


Users browsing this thread: 1 Guest(s)