#1

hello guys
i have smail problems
about my script > i made mission with pickups and checkpoints + reward
1.i tired to make it when i take all pickups | showing to me the Checkpoints and Take The Reward
2.but my problems when i take the pickups >>> the checkpoints appear and i take money
3.i want fix it to >> Take All Pickups After That Showing To Me Checkpoints And Take The Reward <<
PHP код:
#include <a_samp>
#include <zcmd>
#include <Streamer>
new CP[MAX_PLAYERS];
new 
Ship[256];
CMD:robmission(playeridparams[])
{
    
CP[playerid] = 0;
    
SendClientMessage(playerid0xFF0000"Finish This Shit");
    return 
1;
}
public 
OnGameModeInit()
{
    
Ship[1] = CreateDynamicPickup(12101, -1454.8569,1489.1010,7.1016,0);
    
Ship[2] = CreateDynamicPickup(12101, -1428.7382,1490.0945,7.1016,0);
    
Ship[3] = CreateDynamicPickup(12101, -1402.7249,1486.1351,7.1016,0);
    
Ship[4] = CreateDynamicPickup(12101, -1382.1962,1480.3761,8.5625,0);
    
Ship[5] = CreateDynamicPickup(12101, -1382.1962,1480.3761,8.5625,0);
    
Ship[6] = CreateDynamicPickup(12101, -1376.8267,1492.7152,11.2031,0);
    
Ship[7] = CreateDynamicPickup(12101, -1390.7821,1483.1436,1.8672,0);
    
Ship[8] = CreateDynamicPickup(12101, -1434.3047,1483.0374,1.8672,0);
    
Ship[9] = CreateDynamicPickup(12101, -1424.6499,1491.1248,1.8672,0);
    
Ship[10] = CreateDynamicPickup(12101, -1381.9700,1498.3158,8.5625,0);
    return 
1;
}
public 
OnPlayerPickUpPickup(playeridpickupid)
{
for(new 
pID0pID sizeof(Ship); pID++)//To give same things to all pickups
{
if(
CP[playerid] == 0)
if(
pickupid == Ship[pID])
{
CP[playerid] = 10;
}
}
if(
CP[playerid] == 10)
{
        
DestroyDynamicRaceCP(playerid);
        
CreateDynamicRaceCP(0, -2392.9497,2312.1875,-0.1095, -2392.9497,2312.1875,-0.10955.0, -1, -1playerid2000.0);
        
CP[playerid] = 11;
}
else if(
CP[playerid] == 11)//Last CP
{
        
DisablePlayerCheckpoint(playerid);
        
CP[playerid] = 0;
        
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid)+6);
        
GivePlayerMoney(playerid40000+random(120000));
        return 
1;
      }
return 
1;

Reply
#2

try to make another way
i will try to u
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)