5 people in a checkpoint
#1

Hello
I tried many times to do the following thing,but I couldn't:

I want that when 5 people will be in 1 checkpoint,A specific object will move (MoveObject)

I tried that several times,but it didn't work (I deleted all the previous codes)
Can somebody help me
Thanks
Reply
#2

pawn Код:
new cpcount=0;
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
     if(checkpointid==/*you ch id*/)
     {
        cpcount++;
        if(cpcount==5)
        {
               //...
        }
        //...
     }
   return 1;
}
public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
     if(checkpointid==/*you ch id*/)
     {
        cpcount--;
        //...
     }
return 1;
}
Reply
#3

Quote:
Originally Posted by XePloiT
Посмотреть сообщение
pawn Код:
new cpcount=0;
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
     if(checkpointid==/*you ch id*/)
     {
        cpcount++;
        if(cpcount==5)
        {
               //...
        }
        //...
     }
   return 1;
}
public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
     if(checkpointid==/*you ch id*/)
     {
        cpcount--;
        //...
     }
return 1;
}
I don't have those publics in the mode..
I need to add them?

Quote:
Originally Posted by [HLF]Southclaw
Посмотреть сообщение
That's IF he's using the streamer, if not then the code would be different.
I am using MidoStream
Is that makes any diffrences?
Reply
#4

use Incognito's streamer
Reply
#5

I'll think about that
But every streamer has its own publics,right?
Sorry about the stupid questions I came back to scripting after 8 months of a brake xDD
Reply
#6

yes usually, hm... the callback from my script example... its from the streamer i gave you...
i recommend this one...
any way suit yourself :]
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)