06.02.2013, 01:43
This is the check points
and
The command
PHP код:
new Float:checkCoords[MAX_POINTS][4] = {
{293.0301,-38.5132,294.7196,-37.0548}, //Ammunation
PHP код:
new Float:checkpoints[MAX_POINTS][4] = {
{293.6689,-37.6174,1001.5156,3.0}, //Ammunation
PHP код:
if(getCheckpointType(playerid) == CP_Ammunation)
{
if(zones[current_zone][zone_name] == zones[241][zone_name] || zones[current_zone][zone_name] == zones[242][zone_name] ||
zones[current_zone][zone_name] == zones[243][zone_name])
{
if(AmmunationRobbedRecently >= 1)
{
SendClientMessage(playerid,COLOR_ERROR,"The Ammunation has been robbed recently.");
return 1;
}
if(RobSkill[playerid] < 20)
{
SendClientMessage(playerid,COLOR_ERROR,"You must have a robbing skill level of 20 to rob Ammunation. Check /robskill to see what you can rob.");
return 1;
}
AmmunationRobbedRecently =320;
RobbingAmmunation[playerid] =25;
IncreaseWantedLevel(playerid,4);
IncreasePlayerScore(playerid,1);
format(string,sizeof(string),"~w~Robbing Ammunation.~n~~r~Finish Robbery in: %d seconds.~n~~b~Police are on the way.",RobbingAmmunation[playerid]);
GameTextForPlayer(playerid, string, 3000, 3);
format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Ammunation! Get To Ammunation and arrest the suspect.",PlayerName(playerid),playerid);
SendClientMessageToAllCops(string);
format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Ammunation ..",PlayerName(playerid),playerid);
SendClientMessageToAll(COLOR_RED,string);
format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Ammunation ..",PlayerName(playerid),playerid);
IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
return 1;
}
return 1;

