Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <ZCMD>
- #include <sscanf2>
- #define COLOR_RED 0xFF4A4AFF
- #define COLOR_YELLOW 0xF8FF1FFF
- #define COLOR_GREY 0xCCC8C8FF
- enum pInfo
- {
- pAdmin, // Admin enumation
- pMuted, // Mute animation
- pICAuthenticated // If he's allowed to say things IC'ly, meaning, the SCS won't check him.
- }
- new PlayerInfo[MAX_PLAYERS][pInfo];
- new pMoney;
- main()
- {
- print("\n----------------------------------");
- print(" Smart Checker System V1.2");
- print("----------------------------------\n");
- }
- public OnPlayerText(playerid, text[]) // Gets called when a player uses IC chat.
- {
- if(strcmp(text, "lol", true) ==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "rofl", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "lmao", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "lmfao", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "xd", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "noob", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "((", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: attempting to use brackets in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "))", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: attempting to use brackets in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "fu", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "awk", true)==0) // I MADE THIS JUST FOR JOHN JENKINS LOL!
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "brb", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "afk", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "derp", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, ":d", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "newfag", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "newfags", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "noobs", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "( (", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-100);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: attempting to use brackets in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, ") )", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-1000);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: attempting to use brackets in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "DM", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-1000);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "DMer", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-1000);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "RP", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-1000);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "nonRP", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-1000);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: using non-Roleplay words in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "[[", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-1000);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: attempting to use brackets in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "]]", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-1000);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: attempting to use brackets in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "[ [", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-1000);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: attempting to use brackets in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- else if(strcmp(text, "] ]", true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) // If he ain't an administrator.
- {
- if(PlayerInfo[playerid][pMuted] == 0) // If he ain't muted.
- {
- if(PlayerInfo[playerid][pICAuthenticated] == 0) // if he ain't authenticated to use the word IC'ly.
- {
- SendClientMessage(playerid, COLOR_GREY, "You cannot use such words on IC chat!");
- new str[128];
- pMoney = GetPlayerMoney(playerid);
- GivePlayerMoney(playerid, pMoney-1000);
- format(str, sizeof(str), "AdmCmd: %s %s has been fined 1000$ by S.C.S, Reason: attempting to use brackets in IC chat.", GetPlayerFirstName(playerid), GetPlayerLastName(playerid));
- SendClientMessageToAll(COLOR_RED, str);
- }
- }
- }
- return 0;
- }
- return 1;
- }
- stock GetPlayerFirstName(playerid)
- {
- new
- namestring[2][MAX_PLAYER_NAME],
- name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,MAX_PLAYER_NAME);
- split(name, namestring, '_');
- return namestring[0];
- }
- stock GetPlayerLastName(playerid)
- {
- new
- namestring[2][MAX_PLAYER_NAME],
- name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,MAX_PLAYER_NAME);
- split(name, namestring, '_');
- return namestring[1];
- }
- stock split(const strsrc[], strdest[][], delimiter)
- {
- new i, li;
- new aNum;
- new len;
- while(i <= strlen(strsrc)){
- if(strsrc[i]==delimiter || i==strlen(strsrc)){
- len = strmid(strdest[aNum], strsrc, li, i, 128);
- strdest[aNum][len] = 0;
- li = i+1;
- aNum++;
- }
- i++;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement