11.03.2017, 18:05
(
Последний раз редактировалось astanalol; 13.03.2017 в 19:57.
)
remove it please
SendClientMessage(playerid, 0xFF0000, "Finish This Shit"); { SetPlayerHealth(playerid, 100.0); SetPlayerArmour(playerid, 50.0); CP[playerid] = 10; SendClientMessage(playerid, 0x00FF00AA, "You have been healed"); SendClientMessage(playerid, 0x00FF00AA, "Player healed"); } |
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
//if(CP[playerid] == 0) instead of this:
if(pickupid == ship1)
{
DestroyPickup(Ship1);
Ship2 = CreateDynamicPickup(1210, 19, -1428.7382,1490.0945,7.1016,0);
}
Why have you used curly brackets?
And you are setting the CP[playerid] to 10 that means you will ultimately see the checkpoint when OnPlayerPickUpDynamicPickup is called. And I think your code is not complete. Tip: Don't create the pickups when a player uses the command /mission, instead create the next pickup when player picks the last pickup. I mean like this: PHP код:
|