if(strfind(\":D\", text, true) != 1){ for(new i; i < MAX_PLAYERS; i++) { new jatekosnev[27], string[256]; GetPlayerName(playerid,jatekosnev, sizeof (jatekosnev)); format(string, sizeof (string), \"%s nevet.\",jatekosnev); TavolsagVedelem(30.0, i, string, VILAGOS_KEK, VILAGOS_KEK, VILAGOS_KEK, VILAGOS_KEK, VILAGOS_KEK);}}return 0;}
if(strfind(text,\":D\") != -1 ){ new string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,\"_\")] = \' \'; format(string, sizeof(string), \"* %s nevet\", sendername); ProxDetector(30.0, playerid, string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 0;}
public OnPlayerText(playerid, text[]){new Float:x, Float:y, Float:z, stringecske[256], sajatnev[27];{if(IsPlayerConnected(playerid)) { GetPlayerPos(playerid, x, y, z); GetPlayerName(playerid, sajatnev, sizeof (sajatnev)); format(stringecske, sizeof (stringecske), \"%s mondja: %s\", sajatnev, text); TavolsagVedelem(30.0, playerid, stringecske, FEHER, FEHER, FEHER, FEHER, FEHER);}}if(strfind(\":)\", text, true) != 1){new jatekosnev[27], string[256];GetPlayerPos(playerid, xx, yy, zz);GetPlayerName(playerid,jatekosnev, sizeof (jatekosnev));format(string, sizeof (string), \"%s nevet.\",jatekosnev);TavolsagVedelem(30.0, playerid, string, VILAGOS_KEK, VILAGOS_KEK, VILAGOS_KEK, VILAGOS_KEK, VILAGOS_KEK);return 1;} return 0;}
!= -1
public OnPlayerText(playerid, text[]){if(PlayerInfo[playerid][jBeszed] > 0) {new Float:x, Float:y, Float:z, stringecske[256], sajatnev[27];{ if(!IsPlayerConnected(playerid)) { GetPlayerPos(playerid, x, y, z); GetPlayerName(playerid, sajatnev, sizeof (sajatnev)); format(stringecske, sizeof (stringecske), \"%s mondja: %s\", sajatnev, text); TavolsagVedelem(30.0, playerid, stringecske, FEHER, FEHER, FEHER, FEHER, FEHER); } }return 0;}else{if(strfind(\":D\", text, true) != 1){ new jatekosnev[27], string[256]; GetPlayerName(playerid,jatekosnev, sizeof (jatekosnev)); format(string, sizeof (string), \"%s nevet.\",jatekosnev); TavolsagVedelem(30.0, playerid, string, VILAGOS_KEK, VILAGOS_KEK, VILAGOS_KEK, VILAGOS_KEK, VILAGOS_KEK); return 0;}}return 0;}