Jump to content
  • 0

[GF/RP] Cum fac comanda ban/warn pentru o anumita peroada de timp


Otiy

Question

5 answers to this question

Recommended Posts

Poti face o variabila la pInfo , de exemplu pTBanned , si cauti cu CTRL+F , te iei dupa una cu p,de exemplu pLevel si faci totul pentru pTBanned,

apoi  te duci la OnPlayerConnect si pui PlayerInfo[playerid][pTBanned] = 0; apoi faci /tban pornind de la /ban si pui sub giveplayerid = ReturnUser(tmp); pui

[pawn]

new timp;

timp = strval(tmp);

tmp = strtok(cmdtext,idx);

apoi pui strmid(PlayerInfo[giveplayerid][pTBanned],timp, 0, strlen(timp),255);

[/pawn]

Eu ti-am explicat pentru cineva care stie destul de bine sa scripteze , daca nu intelegi ceva spune-mi..

[pawn]Nu uita ca la OnPlayerLogin sa pui

if(PlayerInfo[playerid][pTBanned] == ce vrei tu)

{

  Kick(playerid);

}[/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.