Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- switch(Race[playerid])
- {
- case 0:
- {
- DisablePlayerRaceCheckpoint(playerid);
- PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
- SetPlayerRaceCheckpoint(playerid, 0,1481.8729,1526.2880,10.3770, 1477.3231,1263.1342,10.3806, 10);
- Race[playerid] = 1;
- return 1;
- }
- case 1:
- {
- DisablePlayerRaceCheckpoint(playerid);
- PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0);
- SetPlayerRaceCheckpoint(playerid, 1,1477.3231,1263.1342,10.3806, 1477.3231,1263.1342,10.3806, 10);
- Race[playerid] = 2;
- return 1;
- }
- case 2:
- {
- static place;
- place++;
- Course[playerid] = 0;
- DisablePlayerRaceCheckpoint(playerid);
- PlayerPlaySound(playerid, 1056, 0.0, 0.0 , 10.0);
- new name[MAX_PLAYER_NAME], string[100];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "%s a fini la course et est [%d%s]", name, place, (place == 1) ? ("er") : (place == 2) ? ("e") : (place == 3) ? ("e") : ("e")); // how would i make it for all playrs go like player noob has finshed second player carbon has finshed 3rd
- SendClientMessageToAll(-1, string);
- return 1;
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment