checkpoint help :S
#1

ok till now i had no probs with checkpoints but now i do. all my other checkpoints work but today i tried adding checkpoints to 24-7 shops in ls. they appear but they dont do any thing on stepping onto them :S .

Код:
new shop;
shop=CreateDynamicCP(-30.5400,-28.8732,1003.5573,1.0,-1,-1,-1,5);

public OnPlayerEnterDynamicCP(playerid,checkpointid)
{
	if(IsPlayerInDynamicCP(playerid, checkpointid))
		{
                SendClientMessage(playerid,red,"testing");
                }
        return 1;
}
i use the same way for all my other cps and they work!. idk whats wrong with this one :S.

all other cps are under IsPlayerInDynamicCP but i removed them to paste sthe code here =P
Reply
#2

pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    SendClientMessage(playerid, red, "testing");
    return 1;
}
They're obviously in the checkpoint if the callback for when they enter the checkpoint is called. That's like checking if a a player is dead under OnPlayerDeath.
Reply
#3

-removed: quoted instead of modify..-
Reply
#4

but still the cp doesnt respond :S
Reply
#5

i have 10 cps atm will that make a prob?
Reply
#6

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)