Jump to content

Question

Posted

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;

}

6 answers to this question

Recommended Posts

Posted

Aici pune

if(PlayerInfo[playerid][Jailed] == 1 && PlayerInfo[playerid][admin] == 0)

In loc de admin pui varibila care o ai pentru admin.

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Posted

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]

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.