16.01.2011, 21:56
hi,
try it with a case system (more efficient)
regards...
try it with a case system (more efficient)
pawn Код:
//OnTopOfScript
new CheckPoint[MAX_PLAYERS];
enum //Just add checkpoints here
{
cp1,
cp2
}
public OnPlayerEnterCheckpoint(playerid)
{
switch(CheckPoint[playerid])
{
case cp1:
{
//stuff for cp1
}
case cp2:
{
//stuff for cp2 here
}
}
return 1;
}