30.09.2010, 20:45 
	
	
	
		I made a new Ajail script and it seems like I can't use it on another players If I try to jail another ID it automatically Ajails me, I tried to compare with another scripts, or check for tutorials but I could find anything, please help me.
	
	
	
	
PHP код:
CMD:ajail(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF4646FF, "You are not authorized to use that command !");
else
{
  new otherId;
  new sendername[MAX_PLAYER_NAME];
  new giveplayer[MAX_PLAYER_NAME];
  new string[256];
  if(sscanf(params, "u", otherId)) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /ajail [PlayerID/PartOfName] [Time(minutes)] [Reason]");
  format(string, sizeof(string), "* You Jailed %s.", giveplayer);
  SendClientMessage(playerid, COLOR_LIGHTRED, string);
 if(otherId == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xAFAFAFAA, "Invalid Player ID");
   {
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid,1769.37341309,178.79183960,1369.28161621);
format(string, sizeof(string), "* You been Admin jailed by Admin %s ", sendername );
                SendClientMessage(playerid, 0xFF4646FF, string);
}
        }
    return 1;
} 

