28.12.2010, 12:09
Hello every one I need help about one cmd....
This command need to give team mate +1 respect. How to do that...
Код:
if(!strcmp(cmdtext,"/giverespect", true,2)) { if(!strlen(cmdtext[2])) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /giverespect"); if(gTeam[playerid] != TEAM_GROVE) return SendClientMessage(playerid, 0xAFAFAFAA, "You can't use this command !"); if(playerid != INVALID_PLAYER_ID) SetPlayerScore(playerid, GetPlayerScore(playerid) + 1); GetPlayerName(playerid, playername, sizeof(playername)); format(string, sizeof(string), "* *Groove [%s]: %s,", playername, cmdtext[2]); for(new i = 0; i < MAX_PLAYERS; i++) { } return 1; }