MessageToOr(playerid,color,const string[]){for(new i = 0; i < MAX_PLAYERS; i++){if(IsPlayerConnected(i)) if(GetPlayerSkin(playerid) == 285) SendClientMessage(i, color, string);}return 1;}MessageToRab(playerid,color,const string[]){for(new i = 0; i < MAX_PLAYERS; i++){if(IsPlayerConnected(i)) if(GetPlayerSkin(playerid) == 181) SendClientMessage(i, color, string);}return 1;}public OnPlayerText(playerid, text[]){new estr[128];format( estr , 128 , \"[%i]: %s\" , playerid , text );SendPlayerMessageToAll( playerid , estr );SetPlayerChatBubble(playerid, text, 0xFF00EEAA, 80.0, 9000);//team-chatif(text[0] == \'+\'){new str[128];new pName[MAX_PLAYER_NAME];GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[Õr Team-Chat] %s: %s\", pName, text[1]);MessageToOr(playerid,0x33FF33AA,str);return 0;}if(text[0] == \'!\'){new str[128];new pName[MAX_PLAYER_NAME];GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[Rab Team-Chat] %s: %s\", pName, text[1]);MessageToRab(playerid,0x33FF33AA,str);return 0;}return 0;}
return 0;
OnPlayerText callback-nál return 0;
Az egész OnPlayerText részt másold be.
public OnPlayerText(playerid, text[]){new estr[128];format( estr , 128 , \"[%i]: %s\" , playerid , text );SendPlayerMessageToAll( playerid , estr );SetPlayerChatBubble(playerid, text, 0xFF00EEAA, 80.0, 9000);//team-chatif(text[0] == \'+\'){new str[128];new pName[MAX_PLAYER_NAME];GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[Õr Team-Chat] %s: %s\", pName, text[1]);MessageToOr(playerid,0x33FF33AA,str);return 0;}if(text[0] == \'!\'){new str[128];new pName[MAX_PLAYER_NAME];GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[Rab Team-Chat] %s: %s\", pName, text[1]);MessageToRab(playerid,0x33FF33AA,str);return 0;}return 0;}
public OnPlayerText(playerid, text[]){//team-chatif(text[0] == \'+\'){new str[128];new pName[MAX_PLAYER_NAME];GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[Õr Team-Chat] %s: %s\", pName, text[1]);MessageToOr(playerid,0x33FF33AA,str);return 0;}if(text[0] == \'!\'){new str[128];new pName[MAX_PLAYER_NAME];GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[Rab Team-Chat] %s: %s\", pName, text[1]);MessageToRab(playerid,0x33FF33AA,str);return 0;}new estr[128];format( estr , 128 , \"[%i]: %s\" , playerid , text );SendPlayerMessageToAll( playerid , estr );SetPlayerChatBubble(playerid, text, 0xFF00EEAA, 80.0, 9000);return 0;}
public OnPlayerText(playerid, text[]){//team-chatif(text[0] == \'+\'){new str[128];new pName[MAX_PLAYER_NAME];GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[Õr Team-Chat] %s: %s\", pName, text[1]);MessageToOr(playerid,0x33FF33AA,str);return 1;}if(text[0] == \'!\'){new str[128];new pName[MAX_PLAYER_NAME];GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[Rab Team-Chat] %s: %s\", pName, text[1]);MessageToRab(playerid,0x33FF33AA,str);return 1;}new estr[128];format( estr , 128 , \"[%i]: %s\" , playerid , text );SendPlayerMessageToAll( playerid , estr );SetPlayerChatBubble(playerid, text, 0xFF00EEAA, 80.0, 9000);return 0;}
MessageToOr(playerid,color,const string[]){for(new i = 0; i < MAX_PLAYERS; i++){if(IsPlayerConnected(i)) if(GetPlayerSkin(playerid) == 285) SendClientMessage(i, color, string);}return 1;}MessageToRab(playerid,color,const string[]){for(new i = 0; i < MAX_PLAYERS; i++){if(IsPlayerConnected(i)) if(GetPlayerSkin(playerid) == 181) SendClientMessage(i, color, string);}return 1;}public OnPlayerText(playerid, text[]){//===teamchat====if(text[0] == \'+\'){new str[128];new pName[MAX_PLAYER_NAME];GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[Õr Team-Chat] %s: %s\", pName, text[1]);MessageToOr(playerid,0x33FF33AA,str);return 0;}if(text[0] == \'!\'){new str[128];new pName[MAX_PLAYER_NAME];GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[Rab Team-Chat] %s: %s\", pName, text[1]);MessageToRab(playerid,0x33FF33AA,str);return 0;}new estr[128];format( estr , 128 , \"[%i]: %s\" , playerid , text );SendPlayerMessageToAll( playerid , estr );SetPlayerChatBubble(playerid, text, 0xFF00EEAA, 80.0, 9000);return 0;}
SendClientMessageToAll(playerid, Szín ,str);
public OnPlayerText(playerid, text[]){new estr[128];format( estr , 128 , \"[%i]: %s\" , playerid , text );SendPlayerMessageToAll( playerid , estr );SetPlayerChatBubble(playerid, text, 0xFF00EEAA, 80.0, 9000);//team-chatif(text[0] == \'+\'){new str[128];new pName[MAX_PLAYER_NAME];GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[Õr Team-Chat] %s: %s\", pName, text[1]);MessageToOr(playerid,0x33FF33AA,str);return 1;}if(text[0] == \'!\'){new str[128];new pName[MAX_PLAYER_NAME];GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[Rab Team-Chat] %s: %s\", pName, text[1]);MessageToRab(playerid,0x33FF33AA,str);return 1;}return 0;}