20.05.2011, 14:51
No.
Try it like this. (Don't forget to replace the vehicleid with the vehicleid the player has to in to win)
pawn Код:
for(new i; i < MAX_PLAYERS; ++i)
{
if(IsPlayerInVehicle(i, vehicleid))
{
new
string[64]
;
GetPlayerName(i, string, MAX_PLAYER_NAME);
format(string, sizeof(string), "Winner %s (ID: %d)", string, i);
SendClientMessageToAll(COLOR_RED, string);
break;
}
}