SA-MP Forums Archive
Help Please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help Please (/showthread.php?tid=540221)



Help Please - astanalol00 - 03.10.2014

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;




Re: Help Please - JJack - 03.10.2014

I don't understand what you mean...


Re: Help Please - astanalol00 - 03.10.2014

i Want Making All Checkpoints Showing After After i Done All Showing This To Get Money
Quote:

else if(CP[playerid] == 6)//Last CP
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = -1;
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+6);
GivePlayerMoney(playerid, 40000+random(120000));
}
return 1;
}

that all


Re: Help Please - astanalol00 - 03.10.2014

example this checkpoints when i in 1 checkpoints disable and new checkpoints appear and im in checkpoints disable and 1 new appear
i want make the checkpoints all appear not 1 after 1 after 1 ...
all showing but last one showing after i done all checkpoints
please help


Re: Help Please - MichealScript - 03.10.2014

Do you mean , do you wanna make a pickup for cash?
OR
Do you wanna make Checkpoints for race? Sorry dont understant you


Re: Help Please - Ryz - 03.10.2014

Rip english..


Re: Help Please - MichealScript - 03.10.2014

Yes :C I Can't understant him , No one else does ,

Wish he use the right english so we can understant him


Re: Help Please - astanalol00 - 03.10.2014

Quote:
Originally Posted by MichealScript
Посмотреть сообщение
Yes :C I Can't understant him , No one else does ,

Wish he use the right english so we can understant him
i want remove from all else ever one know what its do else ok
and i want making all checkpoints appear
and last one only else dont change it
if i remove the checkpoints else its will showing only 2 checkpoints frist one and last one this my problems to i want making all checkpoints appear


Re: Help Please - astanalol00 - 04.10.2014

Please Guys Help