checkpoint response
#1

I have a problem. when i enter a checkpoint nothing happens at all. but im sure that it know that i entered the checkpoint as i have tried to put printf("%d",checkpointid) under onplayerenterdynamiccp. now the if code is

Код:
   	if(checkpointid == npcp)
   	{
   	    DestroyDynamicCP(npcp);
		SendClientMessage(playerid,0xA9C4E4FF,"please press 'F' to call the elevator and wait for it to come. after that please go inside and press 'F'.");
	}
help
Reply
#2

I take it you're using Incognito's streamer? Perhaps it would be better to post in the topic for that plugin, you may get a better response.

Could you show us the full code? i.e setting the CP.
Reply
#3

Try something like this:
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if( IsValidDynamicCP( npcp ) )
    {
        DestroyDynamicCP( npcp );
        SendClientMessage(playerid,0xA9C4E4FF,"please press 'F' to call the elevator and wait for it to come. after that please go inside and press 'F'.");
    }
    return 1;
}
It works for me.
Reply
#4

ok gonna try
Reply
#5

didnt work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)