Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <Kolory>
- main(){}
- public OnGameModeInit()
- {
- print("Gamemode by Kaciano zostal pomyslnie wlaczony!"); ///autor gm ZAKAZUJE ZMIANY
- for(new i=0; i<311; i++) AddPlayerClass(i, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
- SetGameModeText("PSZ 1.0.0 "); ///nazwa serwera
- return 1;
- }
- public OnPlayerSpawn(playerid)
- SetPlayerPos(playerid, 1531.1624,751.0803,11.0234);
- public OnPlayerConnect(playerid)
- {
- for(new i; i < 50; i++) SendClientMessage(playerid, COLOR_RED, " ");
- SendClientMessage(playerid, COLOR_YELLOW, "- - - - - - - - - - - - - - - - - - - - - -");
- SendClientMessage(playerid, COLOR_RED, "Witamy na Polskim Zadymka Serwerze ! ! !!");
- SendClientMessage(playerid, COLOR_YELLOW, "- - - - - - - - - - - - - - - - - - - - - -");
- ///Nazwa Serwera
- new pName[MAX_PLAYER_NAME];
- new string[48];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "%s Dołączył Do Serwera !.", pName);
- SendClientMessageToAll(0xAAAAAAAA, string);
- ///gracz dołączył do serwera !!
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new pName[MAX_PLAYER_NAME], string[56];
- GetPlayerName(playerid, pName, sizeof(pName));
- switch(reason)
- {
- case 0: format(string, sizeof(string), "%s Wyszedł z servera. (Lost Connection)", pName);
- case 1: format(string, sizeof(string), "%s Opuścił Serwer. (Leaving)", pName);
- case 2: format(string, sizeof(string), "%s Dostał Kicka. (Kicked)", pName); ///wyszedł z serwera
- }
- SendClientMessageToAll(0xAAAAAAAA, string);
- return 1;
- }
- new str[128];
- public OnPlayerText(playerid, text[])
- {
- if(anty(text) && !IsPlayerAdmin(playerid))
- {
- format(str,256,"*** Gracz %s został zbanowany z Servera. Powód : Reklamowanie IP/STRONY",PlayerName(playerid)); ///banowanie za reklame !
- SendClientMessageToAll(0xFF0000FF, str);
- Ban(playerid);
- return 0;
- }
- return 1;
- }
- stock anty(string[])
- {
- if(strfind(string,"www.",true)!=-1 || strfind(string,"http://",true)!=-1 || strfind(string,".com",true)!=-1 || strfind(string,".net",true)!=-1 || strfind(string,"91.",true)!=-1 || strfind(string,"195.",true)!=-1 || strfind(string,".pl",true)!=-1|| strfind(string,".org",true)!=-1)
- return true;
- return false;
- }
- stock PlayerName(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, MAX_PLAYER_NAME); ///tu się konczy !
- return name;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement