08.08.2012, 19:05
Give a try now:
Best regards!
pawn Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
new pName[MAX_PLAYER_NAME],stringg[128];
GetPlayerName(playerid,pName,sizeof(pName));
PlayerPlaySound(playerid, 5461, 0.0, 0.0, 10.0);
format(stringg,sizeof(stringg),"%s is faster than you all, getting 1st place!",pName);
SendClientMessageToAll(0x33AA33AA,stringg); //after the format.
DisablePlayerRaceCheckpoint(playerid); //also here, if you're trying to do something as "who reach the checkpoint first", should disable the checkpoint for everybody.
/* Using this:
new t = GetMaxPlayers();
for(new p; p <= t; p++)
{
DisablePlayerRaceCheckpoint(p);
}
*/
return 1;
}
![Smiley](images/smilies/smile.png)