Checkpoints
#1

Hey
I would like to ask if is there any function to disable automatically when player enter checkpoint it will DisablePlayerCheckpoint(playerid);

If you are a cop - if(PlayerInfo[playerid][pMember] == 1)
and you enter to a specific checkpoint i made, if you are a cop it will disable checkpoint, if you are a normal player so it won't disable the checkpoint when u enter it and it will SendClientMessage(playerid, -1, "You are not a cop!"); and the checkpoint keep showing.

Thanks.
Reply
#2

use SetPlayerCheckpoint
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
     if(PlayerInfo[playerid][pMember] == 1)
     {
        DisablePlayerCheckpoint(playerid);
      }
     SendClientMessage(playerid,-1,"Your Not a cop");
}
if thats what you mean!
Reply
#3

Quote:
Originally Posted by TomatoRage
Посмотреть сообщение
use SetPlayerCheckpoint
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
     if(PlayerInfo[playerid][pMember] == 1)
     {
        DisablePlayerCheckpoint(playerid);
      }
     SendClientMessage(playerid,-1,"Your Not a cop");
}
if thats what you mean!
Read again. that isn't what i meant.
Reply
#4

Your searching a function ?
try this :SetPlayerCheckpoint
Reply
#5

Quote:
Originally Posted by TomatoRage
Посмотреть сообщение
Your searching a function ?
try this :SetPlayerCheckpoint
You know i already know this function but how to make what i have written in my first post?
Reply
#6

Quote:
Originally Posted by Lidor124
Посмотреть сообщение
You know i already know this function but how to make what i have written in my first post?
What do you mean exactly can you explain more
Reply
#7

Quote:
Originally Posted by TomatoRage
Посмотреть сообщение
What do you mean exactly can you explain more
The point is when you enter a checkpoint and you are not a cop so the checkpoint won't disappear.
In samp usually when you enter a checkpoint the checkpoint dissappers automatically so how do i disable it?
Reply
#8

I've read through this thread and from what I got from it, TomatoRage posted the answer in the first reply.

The checkpoint won't disappear until you disable it using DisablePlayerCheckpoint(playerid);

Unless you created a DynamicCP.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)