Help with chekpoint!
#1

hello guys how i can set checkpoint only for a team (cops) Is that possible? If yes give me a help
Thanks
Reply
#2

PHP код:
public OnPlayerConnect
{
if(
PInfo[playerid][pCop] >= 1//change it to your cops info
{
CPS_AddCheckpoint(1172.6440,-1323.7645,15.40263.740); //change to your checkpoint
}
else
{
///////make what do you want here :D
}
return 
1;

Reply
#3

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;
}
}
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)