Jump to content
  • 0

Reclama=Kick


Guest blondu01

Question

Guest blondu01

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!

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

    	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;
	  }

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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[])

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By TheGodfather
      Salut, am incercat metoda asta pentru a da kick playerilor care joaca de pe telefon dar inca pot intra. Ma puteti ajuta?
      La functia OnPlayerLoginIn am adaugat
      if(FPS2[playerid]-1 == 0) 
              {SCM(playerid, COLOR_CLIENT, "You can not play from a phone. This server is pc only.");
               new string[128];
               format(string, sizeof(string), "AdmBot: %s was kicked by AdmBot, reason: playing from a phone.", GetName(playerid));
               SendAdminMessage(COLOR_LIGHTRED, string, 1);
               return KickEx(playerid);}
      Am cautat peste tot prin GM ce inseamna acel FPS2[playerid]-1 dar nu gasesc, uneori cand sunt aratate FPS-urile, de ex la comanda /id apare FPS[playerid], dar uneori apare FPS[playerid]-1. Cum imi pot da seama ca un jucator joaca de pe telefon?
    • By K0hL
      Salut ! Vreau sa-mi deschid un server de samp cu un prieten , dar cum pot face ca inainte de deschidere sa nu poata intra pe server? Nu pot pune parola pentru ca este pe ultra-h.
      Pot face cand un player intra pe server sa verifice daca este admin si daca nu este sa ii dea kick?
  • 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.