Posts: 569
Threads: 170
Joined: Apr 2009
Reputation:
0
Iґve added new taking[playerid]; on the top, but it says playerid is not definied..
I need to set it to 0 and 1 on different places in the script..
Posts: 195
Threads: 16
Joined: Aug 2009
Reputation:
0
new taking[MAX_PLAYERS];
I do it like that
Posts: 569
Threads: 170
Joined: Apr 2009
Reputation:
0
Can I use that under OnPlayerDeath and does it only take the selected playerid then?
Posts: 195
Threads: 16
Joined: Aug 2009
Reputation:
0
Is it a score your making?
Posts: 569
Threads: 170
Joined: Apr 2009
Reputation:
0
No. When a player enters a checkpoint, I need to set it to 1, so when the player dies I can set:
if(taking == 1)
{
CODE
}
Posts: 195
Threads: 16
Joined: Aug 2009
Reputation:
0
On top of script: new taking[MAX_PLAYERS];
public OnPlayerDeath(playerid)
{
taking[playerid] = 1;
return 1;
}