06.07.2012, 16:07
ok i fixed all errors but now in game.... http://prntscr.com/bnxbq
EDIT: my ingame names is player becouse i connecting via debug.
EDIT: CODE:
EDIT: my ingame names is player becouse i connecting via debug.
EDIT: CODE:
Код:
if(strcmp(cmd, "/trolchat", true) == 0 || strcmp(cmd, "/ttc", true) == 0) { new stri[128]; new message[128]; if(PlayerInfo[playerid][ptroll] == 1) { if(strlen(message) > 1) { SendClientMessage(playerid, COLOR_WHITE, "TROLL: /ttc [MESSAGE]"); } else { format(stri, sizeof(stri), "[TROL CHAT] %s says: %s", sendername, message); } for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && PlayerInfo[i][ptroll] >= 1) { SendClientMessage(i, COLOR_WHITE, stri); } } } return 1; }