02.03.2017, 15:53
Quote:
Add a Pickup or a CP at Enter and Exit points. in OnPlayerPickupPickup or OnPlayerEnterCheckpoint, put a condition,
PHP код:
EDIT: after seeing your code i think its wrong. Put CP or Pickup under OnGameModeInit(), then on OnPlayerPickupPickup or OnPlayerEnterCheckpoint, using a Variable check if player is in VIP entrance or at some other place, like PHP код:
|
Quote:
Create a pickup / cp, assign its Id to a variable and on onplayerpickuppickup / onplayerentercheckpoint check if the entered pickup / cp is VIP entrance, if so check if player is VIP, if yes set his pos to where ever you want otherwise no reactions
|
Quote:
This is obviously something you're trying to do, but this is surely in the wrong place.
Код:
public OnPlayerPickUpPickup(playerid, pickupid) { AddStaticPickup(19607, 2, 1506.3359, 1432.3585, 10.1191, 0); return 1; } And what pickup you create, is created when someone picks up a pickup, so thus, it'll never turn up. |
AddStaticPickup(19607, 2, 1506.3359, 1432.3585, 10.1191, 0);
return 1;
And I Put New One What GTLS Told Me,
Thanks