Help Please
#1

Hello All
Guys i Want Know Somthings
i Can Making This Checkpoints Appear All Not Withe else to making it one after one after one i want making all showing and last one else to after i take all the last one give money
example please +rep
PHP код:
new CP[MAX_PLAYERS];
CMD:rob(playeridparams[])
{
    
CP[playerid] = 0;
    
SetPlayerCheckpoint(playerid, -1447.2351,1502.1000,1.73666.6);
    
SendClientMessage(playerid0xFF0000"This text is red.");
    
SendClientMessage(playerid0xFF0000FF"Wanted Level: 6");
    return 
1;

PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
        if(
CP[playerid] == 0)
        {
        
DisablePlayerCheckpoint(playerid);
        
SetPlayerCheckpoint(playerid, -1454.8569,1489.1010,7.10163.0);//Second CP
        
CP[playerid] = 1;
        }
        else if(
CP[playerid] == 1)
        {
        
DisablePlayerCheckpoint(playerid);
        
SetPlayerCheckpoint(playerid, -1428.7382,1490.0945,7.10163.0);//Third CP
        
CP[playerid] = 2;
        }
        else if(
CP[playerid] == 2)
        {
        
DisablePlayerCheckpoint(playerid);
        
SetPlayerCheckpoint(playerid, -1402.7249,1486.1351,7.10163.0);//Fourth CP
        
CP[playerid] = 3;
        }
        else if(
CP[playerid] == 3)
        {
        
DisablePlayerCheckpoint(playerid);
        
SetPlayerCheckpoint(playerid, -1382.1962,1480.3761,8.56253.0);
        
CP[playerid] = 4;
        }
        else if(
CP[playerid] == 4)
        {
        
DisablePlayerCheckpoint(playerid);
        
SetPlayerCheckpoint(playerid, -1376.8267,1492.7152,11.20313.0);
        
CP[playerid] = 5;
        }
        else if(
CP[playerid] == 5)
        {
        
DisablePlayerCheckpoint(playerid);
        
SetPlayerCheckpoint(playerid, -1390.7821,1483.1436,1.86723.0);
        
CP[playerid] = 6;
        } 
this last one
PHP код:
        else if(CP[playerid] == 6)//Last CP
        
{
        
DisablePlayerCheckpoint(playerid);
        
CP[playerid] = -1;
        
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid)+6);
        
GivePlayerMoney(playerid40000+random(120000));
        }
        return 
1;

Reply


Messages In This Thread
Help Please - by astanalol00 - 03.10.2014, 13:52
Re: Help Please - by JJack - 03.10.2014, 14:01
Re: Help Please - by astanalol00 - 03.10.2014, 15:28
Re: Help Please - by astanalol00 - 03.10.2014, 16:16
Re: Help Please - by MichealScript - 03.10.2014, 16:23
Re: Help Please - by Ryz - 03.10.2014, 16:27
Re: Help Please - by MichealScript - 03.10.2014, 16:30
Re: Help Please - by astanalol00 - 03.10.2014, 16:33
Re: Help Please - by astanalol00 - 04.10.2014, 00:17

Forum Jump:


Users browsing this thread: 1 Guest(s)