23.12.2014, 16:07
hello guys how i can set checkpoint only for a team (cops) Is that possible? If yes give me a help
Thanks
Thanks
public OnPlayerConnect
{
if(PInfo[playerid][pCop] >= 1) //change it to your cops info
{
CPS_AddCheckpoint(1172.6440,-1323.7645,15.4026, 3.7, 40); //change to your checkpoint
}
else
{
///////make what do you want here :D
}
return 1;
}
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; } } |