/jail command. Whats wrong here?
#1

Hey there,

This command has no errors, but doesn't work at all. Can someone tell me whats wrong? I would appreciate it, since my pawno knowledge isnt very advanced.

Код:
if(strcmp(cmdtext, "/ajail", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE/UŻYCIE: /ajail [ID]");
{
if (IsPlayerConnected(giveplayerid))
         {
        SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
          SetCameraBehindPlayer(playerid);
          new pname[MAX_PLAYER_NAME];
     GetPlayerName(playerid, pname, sizeof (pname));
          format(stringl, sizeof(stringl), "*** %s has been jailed by Admin / został uwięziony przez Admina: %s.", pname, pname);
          SendClientMessageToAll(COLOR_ADMIN, stringl);
          printf(stringl);
          return 1;
          }else{
        format(stringl, sizeof(stringl), "ID %d is not an active player / nie jest aktywnym graczem!", giveplayerid);
        SendClientMessage(playerid, COLOR_GREY, stringl);

     }
   }
   }
      return 1;
  }
And is that unjail command correct too?
Код:
if(strcmp(cmdtext, "/aunjail", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid,2139.2112,1000.7551,10.8203);
        SendClientMessage(playerid,COLOR_GREEN, "*** You have been released from jail / Zostałes zwolniony z więzienia!");
			  }
	 return 1;
	 }
Thanks and Regards
Puzi
Reply


Messages In This Thread
/jail command. Whats wrong here? - by Puzi - 25.08.2009, 20:13
Re: /jail command. Whats wrong here? - by Kyle - 25.08.2009, 20:45
Re: /jail command. Whats wrong here? - by Puzi - 26.08.2009, 06:16
Re: /jail command. Whats wrong here? - by Clavius - 26.08.2009, 06:21
Re: /jail command. Whats wrong here? - by Puzi - 26.08.2009, 06:24
Re: /jail command. Whats wrong here? - by dice7 - 26.08.2009, 08:14
Re: /jail command. Whats wrong here? - by Puzi - 26.08.2009, 09:32
Re: /jail command. Whats wrong here? - by Jefff - 26.08.2009, 10:57
Re: /jail command. Whats wrong here? - by Puzi - 26.08.2009, 14:47
Re: /jail command. Whats wrong here? - by Jefff - 26.08.2009, 16:23

Forum Jump:


Users browsing this thread: 2 Guest(s)