Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Reclama=Kick


Guest blondu01

Question

Guest blondu01
Posted

Salutare cum pot pune pe server cand un player nou intra si doreste sa faca reclama sa primeasca automat kick! putin ajutor va rog...deci mai explicit sa fiu,cand scrie el ip`ul de la server intrati pe 86....etc si da enter sa primeasca automat kick

Si cine stie sa imi spuna cum pun sa dea automat wanted lvl 2 daca omori pe cineva!

6 answers to this question

Recommended Posts

Posted
    	if(!strcmp(text, ":7777", true))
	{
	       GetPlayerName(playerid, sendername, 24);
               format(string, 256, "%s vroia sa faca reclama dar nu i-a mers si a primit kick.", sendername);
               SendClientMessageToAll(COLOR_LIGHTRED, string);
	       ProxDetector(20.0, playerid, string, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA);
	       Kick(giveplayerid);
	       return 0;
	 }
    	 if(!strcmp(text, ":8888", true))
	 {
	        GetPlayerName(playerid, sendername, 24);
                format(string, 256, "%s vroia sa faca reclama dar nu i-a mers si a primit kick.", sendername);
                SendClientMessageToAll(COLOR_LIGHTRED, string);
	        ProxDetector(20.0, playerid, string, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA);
	        Kick(giveplayerid);
	        return 0;
	  }

Posted

Si daca face ceva de genu samp.blabla.ro ?

Fara :7777 ? ...

Sau pur si simplu pune ip ala fara :7777 , ca mai toata lumea stie ca mai toate serverele se termina in 7777.

Posted

if(FindIP(text)) /// Anti-Reclama
    {
        SendClientMessage(playerid, COLOR_RED, "Ai luat kick din cauza ip-ului scris");
        new advertiser[MAX_PLAYER_NAME];
		GetPlayerName(playerid, advertiser, sizeof(advertiser));
		format(string, sizeof(string), "SERVER: %s was kicked by Guardian, reason: Server Advertising",advertiser);
		SendClientMessageToAll(0xFF6347AA,string);
		KickLog(string);
        Kick(playerid);
        return 1;
    }
Pui la
public OnPlayerText(playerid, text[])

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.