Jump to content
  • 0

Jail


alinutz_boy32

Question

Am si eu o problema .. nu pot sa folosesc comanda /unjail cand sunt in puscarie!

eu cred ca este de la

public OnPlayerCommandReceived(playerid, cmdtext[])

{

    if(PlayerInfo[playerid][Jailed] == 1)

    {

      SendClientMessage(playerid,COLOR_WHITE,"Nu poti folosi aceasta comanda in timp ce esti in jail");

      return 0;

    }

    return 1;

}

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Mai am o intrebare ! cand astept minutele imi da respawn si scrie Released From Jai.. cum fac si cand dau /unjail si imi da respawn.. sa scrie tot la fel !

[pawn]public UnjailPlayer(player1)

{

KillTimer(JailTimer[player1]);

PlayerInfo[player1][JailTime] = 0;

PlayerInfo[player1][Jailed] = 0;

SetPlayerInterior(player1,0);

SetPVarInt(player1, "Jailed", 0);

SetPlayerPos(player1, 0.0, 0.0, 0.0);

SpawnPlayer(player1);

PlayerPlaySound(player1,1057,0.0,0.0,0.0);

GameTextForPlayer(player1,"~g~Released ~n~From Jail",3000,3);

}[/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.