04.10.2009, 10:54
This is an example how to do it, but it isn't very effective because you don't have to be in a truck all the time to get score.
pawn Код:
forward GiveScore();
//under OnGameModeInit
SetTimer("GiveScore", 60000, true); // timer for every 1 minute
public GiveScore()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsPlayerInTruck(i)) // You need to get or make yourself the IsPlayerInTruck function
{
SetPlayerScore(i, GetPlayerScore(i) + 1);
}
}
}