Jump to content

Question

Posted

Cum pun si eu anti reclama asta pe /ooc.

if(FindIP(text)) ///

{

    new advertiser[MAX_PLAYER_NAME];

    GetPlayerName(playerid, advertiser, sizeof(advertiser));

    format(string, sizeof(string), "AdmCmd: %s was kicked by Guardian, reason: Reclam",advertiser);

    SendClientMessageToAll(COLOR_LIGHTRED,string);

    BanLog(string);

    Kick(playerid);

    return 1;

}

daca o pun pe /ooc imi spune ca "text" de la if(FindIP(text))  nu e definit.Mersi frumos

2 answers to this question

Recommended Posts

Posted

incearca s-o pui la /ooc asa:

if(FindIP(cmdtext)) ///
{
     new advertiser[MAX_PLAYER_NAME];
     GetPlayerName(playerid, advertiser, sizeof(advertiser));
     format(string, sizeof(string), "AdmCmd: %s was kicked by Guardian, reason: Reclam",advertiser);
     SendClientMessageToAll(COLOR_LIGHTRED,string);
     BanLog(string);
     Kick(playerid);
     return 1;
}

si vezi daca merge

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.