Help with chekpoint! -
virusa1 - 23.12.2014
hello guys how i can set checkpoint only for a team (cops) Is that possible? If yes give me a help
Thanks
Re: Help with chekpoint! -
nezo2001 - 23.12.2014
PHP код:
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;
}
Re: Help with chekpoint! -
rashidkhoso37 - 23.12.2014
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;
}
}
Re: Help with chekpoint! -
virusa1 - 23.12.2014
Quote:
Originally Posted by rashidkhoso37
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;
}
}
|
ahhahaha Thanks pal, but wansn't looking for that

Already fixed in another way without checkpoints thanks guys