Problem with /uncuff help !
#4

Oh yeah sec.
pawn Код:
if(!strcmp(cmd,"/uncuff",true))
{
  if(PlayerInfo[playerid][pMember]!=1||PlayerInfo[playerid][pLeader]!=1) return SendClientMessage(playerid,COLOR_GREY,"You are not a cop");
  cmd=strtok(cmdtext,idx);
  if(!strlen(cmd)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /cuff [id]");
  id=ReturnUser(cmd);
  if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_GREY,"This player isn't connected");
  new Float:x,Float:y,Float:z;
  GetPlayerPos(playerid,x,y,z);
  if(!PlayerToPoint(8,id,x,y,z)) return SendClientMessage(playerid,COLOR_GREY,"This person has to be close enough to you.");
  if(!PlayerCuffed[giveplayerid]) return SendClientMessage(playerid,COLOR_GREY,"Player is already cuffed");
  GetPlayerName(id, giveplayer, sizeof(giveplayer));
  GetPlayerName(playerid, sendername, sizeof(sendername));
  format(string, sizeof(string), "* You were Uncuffed by %s.", sendername);
  SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  GameTextForPlayer(id, "~g~Uncuffed", 2500, 3);
  TogglePlayerControllable(id, 1);
  PlayerCuffed[id] = 0;
  return 1;
}
Reply


Messages In This Thread
Problem with /uncuff help ! - by tunetu - 21.03.2009, 21:35
Re: Problem with /uncuff help ! - by MenaceX^ - 21.03.2009, 22:01
Re: Problem with /uncuff help ! - by tunetu - 22.03.2009, 10:07
Re: Problem with /uncuff help ! - by MenaceX^ - 22.03.2009, 10:08

Forum Jump:


Users browsing this thread: 1 Guest(s)