08.07.2011, 17:08
Quote:
Код:
//Poe no topo so pra nun da erro #define COLOR_KRED 0xFF0000FF ////////////////////////////////////// if(text[0] == '#' || text[0] == '@') { new string[256]; new adminChat[256]; strmid(adminChat,text,1,strlen(text)); format(string, sizeof(string),"[Admins]%s: %s", Player(playerid), adminChat); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && IsPlayerAdmin(i) || jadmin[i] && IsPlayerConnected(i)) { SendClientMessage(i, COLOR_KRED, string); } } return 0; } |
2 - Pra que strmid ?
3 - Cade a stock Player(playerid) .. ?