22.11.2013, 01:32
(
Последний раз редактировалось bombomloko; 22.11.2013 в 02:17.
)
Ou tambйm, no caso de ser server RPG e querer mostrar a mensagem apenas para players que estiverem perto, usando a public ProxDetector, testei e funcionou.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_PASSENGER)
{
new playa[MAX_PLAYER_NAME];
GetPlayerName(playerid, playa, sizeof(playa));
format(gstring, sizeof(gstring), "%s ID %d entrou na carona do veнculo.", playa, playerid);
ProxDetector(30.0, playerid, gstring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}