dcmd_goto
#3

Quote:
Originally Posted by Fabio11
Try the Mine:
Код:
 dcmd_goto(playerid,params[]) {
  if (dUserINT(PlayerName(playerid)).("admin")>=1)
  {
	  if(!strlen(params)) return SendClientMessage(playerid,COLOR_ROJOCLARO,"USAGE: /goto <id>");
    new id;
    id = strval(params);

		if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID && id != playerid) {
			new string[256],Name[24],ActionName[24],Float:X,Float:Y,Float:Z; GetPlayerName(playerid,Name,24); GetPlayerName(id,ActionName,24);
			new Interior = GetPlayerInterior(id); SetPlayerInterior(playerid,Interior); SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id)); GetPlayerPos(id,X,Y,Z); if(IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z); LinkVehicleToInterior(GetPlayerVehicleID(playerid),Interior); } else SetPlayerPos(playerid,X,Y,Z);
			format(string,256,"You have gone to %s",ActionName); return SendClientMessage(playerid,COLOR_ROJOCLARO,string);
 		} else return SendClientMessage(playerid,COLOR_ROJOCLARO,"You can't teleport to yourself or to a disconected user");
	}
	return 1;
}
Yours is great, but i want to get problem known..

Im learning while repairing..
Reply


Messages In This Thread
dcmd_goto - by GaGlets(R) - 28.02.2010, 18:39
Re: dcmd_goto - by Fabio11 - 28.02.2010, 19:15
Re: dcmd_goto - by GaGlets(R) - 28.02.2010, 19:32
Re: dcmd_goto - by dice7 - 28.02.2010, 19:35
Re: dcmd_goto - by Sergei - 28.02.2010, 19:45

Forum Jump:


Users browsing this thread: 1 Guest(s)