Jump to content
  • 0

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


Question

Posted

Cum fac comanda ban/warn pentru o anumita peroada de timp? Adica sa scriu /tempban si sa baneze pe cineva pentru o perioada de timp pusa de admin si la warn la fel

5 answers to this question

Recommended Posts

Posted

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]

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.