14.03.2017, 15:10
(
Последний раз редактировалось astanalol; 16.03.2017 в 02:18.
)
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 <<
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(playerid, params[])
{
CP[playerid] = 0;
SendClientMessage(playerid, 0xFF0000, "Finish This Shit");
return 1;
}
public OnGameModeInit()
{
Ship[1] = CreateDynamicPickup(1210, 1, -1454.8569,1489.1010,7.1016,0);
Ship[2] = CreateDynamicPickup(1210, 1, -1428.7382,1490.0945,7.1016,0);
Ship[3] = CreateDynamicPickup(1210, 1, -1402.7249,1486.1351,7.1016,0);
Ship[4] = CreateDynamicPickup(1210, 1, -1382.1962,1480.3761,8.5625,0);
Ship[5] = CreateDynamicPickup(1210, 1, -1382.1962,1480.3761,8.5625,0);
Ship[6] = CreateDynamicPickup(1210, 1, -1376.8267,1492.7152,11.2031,0);
Ship[7] = CreateDynamicPickup(1210, 1, -1390.7821,1483.1436,1.8672,0);
Ship[8] = CreateDynamicPickup(1210, 1, -1434.3047,1483.0374,1.8672,0);
Ship[9] = CreateDynamicPickup(1210, 1, -1424.6499,1491.1248,1.8672,0);
Ship[10] = CreateDynamicPickup(1210, 1, -1381.9700,1498.3158,8.5625,0);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
for(new pID= 0; pID < 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.1095, 5.0, -1, -1, playerid, 2000.0);
CP[playerid] = 11;
}
else if(CP[playerid] == 11)//Last CP
{
DisablePlayerCheckpoint(playerid);
CP[playerid] = 0;
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+6);
GivePlayerMoney(playerid, 40000+random(120000));
return 1;
}
return 1;
}