command get id of player help
#2

Use sscanf specifier "u"
pawn Код:
//Example
CMD:get(playerid, params[])
{
      new target, Float:X, Float:Y, Float:Z;
      new string[120];
      if(sscanf(params,"u", target)) return SendClientMessage(playerid, RED,"[USAGE]: /get [ID/Name/PartOfName]");
      if(IsPlayerConnected(target))
      {
         GetPlayerPos(playerid, X, Y, Z);
         new interior = GetPlayerInterior(playerid);
         new world = GetPlayerVirtualWorld(playerid);
         SetPlayerInterior(target, interior);
         SetPlayerPos(target, X, Y, Z);
         SetPlayerVirtualWorld(target, world);
      }
   return 1;
}
Reply


Messages In This Thread
command get id of player help - by NewbieScripter - 09.03.2013, 20:44
Re: command get id of player help - by DaRk_RaiN - 09.03.2013, 20:50
Re: command get id of player help - by NewbieScripter - 09.03.2013, 20:51
Re: command get id of player help - by DaRk_RaiN - 09.03.2013, 20:54
Re: command get id of player help - by mineralo - 09.03.2013, 21:00
Re: command get id of player help - by Hoda - 09.03.2013, 21:24
Re: command get id of player help - by Threshold - 09.03.2013, 23:26
AW: command get id of player help - by morocco - 09.03.2013, 23:44
Respuesta: command get id of player help - by JustBored - 09.03.2013, 23:53

Forum Jump:


Users browsing this thread: 1 Guest(s)