Niko_Hs

[COMMAND]Get

Aug 4th, 2011
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.70 KB | None | 0 0
  1. //**Nota non è un Fs , solo comando.
  2.  
  3. public OnPlayerCommandText(playerid, cmdtext[])
  4. {
  5.  
  6. if(strcmp(cmd, "/get", true) == 0) {
  7.  new
  8.       tmp[250],
  9.       Float:pos[3],
  10.       vw,
  11.       int;
  12.  tmp = strtok(cmdtext, idx);
  13.  if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xff000000, "Devi essere un Admin per usare questo Comando!");
  14.  if(!strlen(tmp)) return SendClientMessage(playerid, 0xff000000, "[USA] /get ID");
  15.  int = GetPlayerInterior(playerid);
  16.  vw = GetPlayerVirtualWorld(playerid);
  17.  GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  18.  SetPlayerInterior(strval(tmp), int);
  19.  SetPlayerVirtualWorld(strval(tmp), vw);
  20.  SetPlayerPos(strval(tmp), pos[0], pos[1], pos[2]);
  21.  return true;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment