09.09.2016, 14:07
pawn Код:
if(PRESSED(KEY_FIRE))
{
GetPlayerHealth(i,Health);// i = the ROBBER
SetPlayerHealth(i,Health-5);
SetTimerEx("CantAtack",1000,0,"i",playerid);
PInfo[playerid][CanAtack] = 0;
if(Health <= 6.0)
{
JailPlayer(i);// i = robber
GivePlayerEXP(playerid);//playerid = THE KILLER/MAIN COP
CheckCopLevel(playerid);
for(new j = 0; i < MAX_PLAYERS; i++)//j = THE NEAR COPS
if(Team[j] == COP && IsPlayerInRangeOfPoint(j, 5.0, x, y, z))//THE ANOTHER NEAR COPS
{
PInfo[j][XPtoNearCop] = 1;
PInfo[j][Assists]++;
GiveNearCopPlayerXP(j);
SendClientMessage(j, red,"+12exp assist For TEAMWORK");
}
}


