player have checkpoint
#1

Hi!
i want to say
if player have checkpoint don't get new checkpoint
for example i have checkpoint and i choose a job in jobs list and send me error : you already have an checkpoint.
Reply
#2

When player choose a checkpoint, give integer to them. Like this :
new cp[MAX_PLAYERS]
...
if(cp[pid]==0){
showcheckpoint blablabla;
cp[pid]=1;}
else { sendclientmessage(bla, bla, "you arleady have checkpointbal"); }

Now do checkpoint delete command
CMD:checkpointdelete(blala){
if(cp[pid]==1){
notshowcheckpointhere
cp[pid]=0;}

Hope understand how do it.
Reply
#3

Quote:
Originally Posted by lollypap54
Посмотреть сообщение
When player choose a checkpoint, give integer to them. Like this :
new cp[MAX_PLAYERS]
...
if(cp[pid]==0){
showcheckpoint blablabla;
cp[pid]=1;}
else { sendclientmessage(bla, bla, "you arleady have checkpointbal"); }

Now do checkpoint delete command
CMD:checkpointdelete(blala){
if(cp[pid]==1){
notshowcheckpointhere
cp[pid]=0;}

Hope understand how do it.
i say
new cp[MAX_PLAYERS] == 0;
...
if(cp == 1)
{
SCM(playerid, Color_X,"You already have checkpoint");
return 1; }
but
I get checkpoint then i change my job - it should be say = error : You already have checkpoint
but
when i change my job , checkpoint will be change . . .
i don't know
and i don't have any error when i compile it :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)