23.12.2014, 16:54
if(CPS_IsPlayerInCheckpoint(playerid, cpcoprefill))// COP Refill Point At LVPD
{
if(!IsPlayerInAnyVehicle(playerid))
{
if(gTeam[playerid] == COP)
{
GivePlayerWeapon(playerid, 22,200);
GivePlayerWeapon(playerid, 25,200);
GivePlayerWeapon(playerid, 32,1600);
GivePlayerWeapon(playerid, 3,0);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid,0x20B2AAAA,"You Received All Free Weapons From COP Refill Point.");
SendClientMessage(playerid,0x20B2AAAA,"Your Health And Armour Has Been Refilled.");
return 1;
}
SendClientMessage(playerid,COLOR_RED,"This Is Cops Refill Point You Are Not A COP");
return false;
}
}
{
if(!IsPlayerInAnyVehicle(playerid))
{
if(gTeam[playerid] == COP)
{
GivePlayerWeapon(playerid, 22,200);
GivePlayerWeapon(playerid, 25,200);
GivePlayerWeapon(playerid, 32,1600);
GivePlayerWeapon(playerid, 3,0);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid,0x20B2AAAA,"You Received All Free Weapons From COP Refill Point.");
SendClientMessage(playerid,0x20B2AAAA,"Your Health And Armour Has Been Refilled.");
return 1;
}
SendClientMessage(playerid,COLOR_RED,"This Is Cops Refill Point You Are Not A COP");
return false;
}
}