weird problem with commands
#7

PHP код:
CMD:freeze(playeridparams[])
{
  if(
pInfo[playerid][AdminLevel] >= 1) return SendClientMessage(playerid, -1"{FF0000}[SYSTEM ERROR]: You don't have the privilege to use that command.");
  {
      new 
idname[128], string[128];
      if(
pInfo[playerid][Logged] == 0) return SendClientMessage(playerid, -1"{FF0000}[SYSTEM[: {FFFFFF}You have to login before you can use commands !");
      if(
sscanf(params"u"id)) return SendClientMessage(playerid, -1"{FF0000}[SYSTEM ERROR]: {FFFFFF}USAGE: /freeze [id]");
      if(!
IsPlayerConnected(id)) return SendClientMessage(playerid, -1"{FF0000}[SYSTEM ERROR]: The ID you have inputted is incorrect !");
      
PlayerPlaySound(playerid,6400,0.0,0.0,0.0);
      
TogglePlayerControllable(id0);
      
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
      
format(string,sizeof string,"You have freezed %s",name);
      
SendClientMessageToAll(-1string);
      
format(string,sizeof string"{FF0000}[SYSTEM]: You have been frozen by {FFFF00}%s",name);
  }
  return 
1;

Reply


Messages In This Thread
weird problem with commands - by Glossy42O - 23.07.2015, 07:59
Re: weird problem with commands - by BleverCastard - 23.07.2015, 08:01
Re: weird problem with commands - by Glossy42O - 23.07.2015, 08:08
Re: weird problem with commands - by Glossy42O - 23.07.2015, 14:46
Re: weird problem with commands - by MBilal - 23.07.2015, 14:50
Re: weird problem with commands - by Andre02 - 23.07.2015, 14:51
Re: weird problem with commands - by Glossy42O - 23.07.2015, 15:01
Re: weird problem with commands - by xVIP3Rx - 23.07.2015, 15:04
Re: weird problem with commands - by Crystallize - 23.07.2015, 15:06
Re: weird problem with commands - by Glossy42O - 23.07.2015, 15:08

Forum Jump:


Users browsing this thread: 2 Guest(s)