/up command
#8

pawn Код:
dcmd_up(playerid,params[])
{
  if(PlayerInfo[playerid][LoggedIn]!=1) return SendClientMessage(playerid,red,"You must be logged.");
  if(PlayerInfo[playerid][Level]<2 || !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,"You're not an admin.");
  new
    tmp[128],
    idx,
    adminame[MAX_PLAYER_NAME],
    PlayerName[MAX_PLAYER_NAME],
    Float:x,
    Float:y,
    Float:z;
  tmp=strtok(cmdtext,idx);
  if(!strlen(tmp)) return SendClientmessage(playerid,red,"USAGE: /up [playerid]");
  if(!IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid,red,"Not connected.");
  GetPlayerName(strval(tmp),PlayerName,sizeof(PlayerName));
  GetPlayerName(playerid,adminname,sizeof(adminname);
  CMDMessageToAdmins(playerid,"/up");
  GetPlayerPos(strval(tmp),x,y,z);
  SetPlayerPos(strval(tmp),x,y,z+5);
  PlayerPlaySound(strval(tmp),1190,0.0,0.0,0.0);
  PlayerPlaySound(playerid,1190,0.0,0.0,0.0);
  return 1;
}
Reply


Messages In This Thread
/up command - by Butilka - 18.08.2009, 21:09
Re: /up command - by silvan - 18.08.2009, 22:42
Re: /up command - by Butilka - 19.08.2009, 08:06
Re: /up command - by MenaceX^ - 19.08.2009, 08:12
Re: /up command - by Butilka - 19.08.2009, 08:14
Re: /up command - by MenaceX^ - 19.08.2009, 08:28
Re: /up command - by Butilka - 19.08.2009, 08:30
Re: /up command - by MenaceX^ - 19.08.2009, 08:35
Re: /up command - by Butilka - 19.08.2009, 09:35
Re: /up command - by Gamer_Z - 19.08.2009, 10:22

Forum Jump:


Users browsing this thread: 2 Guest(s)