01.05.2015, 23:48
What suppose to do this command? :
Код:
if(strcmp(cmd, "/black", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == TEAM_ZETAS) { if (PlayerToPoint(3, playerid,1116.2616,-972.3250,42.7656)) { new ranktext[256]; switch(PlayerInfo[playerid][pRank]) { case 1: format(ranktext, sizeof(ranktext), "%s", TeamInfo[PlayerInfo[playerid][pMember]][fRank1]); case 2: format(ranktext, sizeof(ranktext), "%s", TeamInfo[PlayerInfo[playerid][pMember]][fRank2]); case 3: format(ranktext, sizeof(ranktext), "%s", TeamInfo[PlayerInfo[playerid][pMember]][fRank3]); case 4: format(ranktext, sizeof(ranktext), "%s", TeamInfo[PlayerInfo[playerid][pMember]][fRank4]); case 5: format(ranktext, sizeof(ranktext), "%s", TeamInfo[PlayerInfo[playerid][pMember]][fRank5]); case 6: format(ranktext, sizeof(ranktext), "%s", TeamInfo[PlayerInfo[playerid][pMember]][fRank6]); } if(Func[playerid]==0) { if(PlayerInfo[playerid][pMember] == TEAM_ZETAS) SendClientMessage(playerid, COLOR_WHITE, "Ти включи функцията!"); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); Func[playerid] = 1; } else if(Func[playerid]==1) { SendClientMessage(playerid, COLOR_WHITE, "Ти изключи функцията!"); if(PlayerInfo[playerid][pMember] == TEAM_ZETAS) format(string, sizeof(string), "", PlayerName(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); Func[playerid] = 0; } } else { SendClientMessage(playerid, COLOR_GRAD2, " Ти не си на мястото за смяна!"); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD1, " Ти не си член на Black Mafia!"); } } return 1; }