[Ajuda] Checkpoints
#5

Use o plugin streamer

PHP код:
native CreateDynamicCP(Float:xFloat:yFloat:zFloat:sizeworldid = -1interiorid = -1playerid = -1Float:streamdistance STREAMER_CP_SD); 
Exemplo:
PHP код:
new CP[2];
CP[0] = CreateDynamicCP(285.9076,-32.2660,1001.51561.0);
CP[1] = CreateDynamicCP(1335.4783,-1271.9274,13.54692.0);
public 
OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    if(
CP[0] == checkpointid)
    {
        
SendClientMessage(playerid, -1"Vocк entrou no checkpoint 0");
    }
    if(
CP[1] == checkpointid)
    {
        
SendClientMessage(playerid, -1"Vocк entrou no checkpoint 1");
    }
    return 
1;
}
public 
OnPlayerLeaveDynamicCP(playeridcheckpointid)
{
    if(
CP[0] == checkpointid)
    {
        
SendClientMessage(playerid, -1"Vocк saiu do checkpoint 0");
    }
    if(
CP[1] == checkpointid)
    {
        
SendClientMessage(playerid, -1"Vocк saiu do checkpoint 1");
    }
    return 
1;

Reply


Messages In This Thread
Checkpoints - by moura98 - 27.09.2015, 18:21
Re: Checkpoints - by iBolivaRevolutioN - 27.09.2015, 18:26
Re: Checkpoints - by moura98 - 27.09.2015, 18:34
Re: Checkpoints - by moura98 - 27.09.2015, 18:41
Re: Checkpoints - by MultiKill - 27.09.2015, 18:44
Re: Checkpoints - by moura98 - 27.09.2015, 18:49
Re: Checkpoints - by MultiKill - 27.09.2015, 18:57
Re: Checkpoints - by moura98 - 27.09.2015, 19:02
Re: Checkpoints - by MultiKill - 27.09.2015, 19:07
Re: Checkpoints - by moura98 - 27.09.2015, 19:09

Forum Jump:


Users browsing this thread: 1 Guest(s)