23.06.2009, 16:05
Quote:
Originally Posted by Swift_
Test the code I gave you.
|
Heres the code:
Код:
new CP[MAX_PLAYERS];
Код:
if(CP[playerid] != 0) return 1; CPS_AddCheckpoint(2036.4734, -1402.9043,17.2983, 3.0,100); //hospital CP[playerid] = 1; if(CP[playerid] != 1) return 1; CPS_AddCheckpoint(3867.2412, -1601.9069,1441.6368, 3.0,100); CP[playerid] = 2; return 1; }
Код:
public OnPlayerEnterCheckpoint(playerid) { if(CP[playerid] == 1) { GameTextForPlayer(playerid, "~w~Welcome to the Hospital, Type /Heal to heal your HP! it costs $100 ~G~", 5000, 5); } else if(CP[playerid] == 2) { GameTextForPlayer(playerid, "~w~Welcome to the Weapon shop, Type /weapons to get weapons!~G~", 5000, 5); } CP[playerid] = 0; return 1; }
http://forum.sa-mp.com/index.php?topic=77156.0
The problem i'm having is, When i enter the checkpoint (for the first time) it displays what i want it to, but after that it doesnt display it at all