07.05.2009, 17:45
Код:
if(strcmp(cmd, "/robbank", true) == 0) { if(PlayerInfo[playerid][pLocal] == 103) { if(PlayerInfo[playerid][pRobTime] == 1) { SendClientMessage(playerid, COLOR_YELLOW, "You cannot rob the Bank more then once per day(1 Hour)!"); } if(PlayerInfo[playerid][pRobTime] == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessage(playerid, 0xFF0000FF, " You Have Robbed The Bank "); CP[playerid] = 2; format(string, sizeof(string), "** HQ: The Bank in Los Angeles has been robbed by %s!!. **", sendername); SendRadioMessage(1, TEAM_BLUE_COLOR, string); SendRadioMessage(2, TEAM_BLUE_COLOR, string); SendRadioMessage(3, TEAM_BLUE_COLOR, string); WantedPoints[playerid] +=4; SetPlayerCriminal(playerid,255, "Robbing the Bank!"); format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the Bank.", sendername); SendClientMessage(playerid, COLOR_YELLOW, "You have been seen on the security cameras! Run away!"); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } return 1; }
Could you explain, and show me how at the same time for me?
Thanks