06.06.2014, 10:33
This, I wanted to know the "PlayerNameCapping" if he is in pGang 20012014 it will show "Shutting down by the POLICE"
I tried this
but it give me couple of errors,
hope i will get a help! sorry for my bad english
I tried this
Код:
CMD:pointinfo(playerid, params[]) { new iCount, szMessage[128]; SendClientMessage(playerid, COLOR_NEWS, "Point Info:"); for(new i; i < MAX_POINTS; i++) { if(Points[i][Type] >= 0) { if(Points[i][Vulnerable] == 0 && Points[i][TakeOverTimerStarted] > 0) { if(Points[i][TakeOverTimer] == 0) { if(PlayerInfo[PlayerNameCapping][pGang] == 20012014) { format(szMessage, sizeof(szMessage), "* %s | Capper: %s | Shutting down by the POLICE | Time left: Less than 1 minute", Points[i][Name], Points[i][PlayerNameCapping]); } else { format(szMessage, sizeof(szMessage), "* %s | Capper: %s | Family: %s | Time left: Less than 1 minute", Points[i][Name], Points[i][PlayerNameCapping], FamilyInfo[Points[i][ClaimerTeam]][FamilyName]); } SendClientMessage(playerid, COLOR_WHITE, szMessage); iCount++; } else { if(PlayerInfo[PlayerNameCapping][pGang] == 20012014) { format(szMessage, sizeof(szMessage), "* %s | Capper: %s | Shutting down by the POLICE | Time left: %d minutes", Points[i][Name], Points[i][PlayerNameCapping], Points[i][TakeOverTimer]); } else { format(szMessage, sizeof(szMessage), "* %s | Capper: %s | Family: %s | Time left: %d minutes", Points[i][Name], Points[i][PlayerNameCapping], FamilyInfo[Points[i][ClaimerTeam]][FamilyName], Points[i][TakeOverTimer]); } SendClientMessage(playerid, COLOR_WHITE, szMessage); iCount++; } } } } if(iCount == 0) return SendClientMessage(playerid, COLOR_GRAD2, "No family has capped the point or the point is not ready to be capped."); return 1; }
hope i will get a help! sorry for my bad english
