Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new carid = GetPlayerVehicleID(playerid);
- if((carid <= 407) && (carid <= 427) || (carid <= 432) || (carid <= 433) && (carid <= 490) || (carid >= 497) && (carid >= 523) || (carid >= 528) && (carid <= 596) || (carid >= 597) && (carid <= 598) && (carid <= 599) && (carid <= 601))
- if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
- {
- PlayAudioStreamForPlayer(playerid, "http://relay.radioreference.com:80/il_chicago_police2");
- SendClientMessage(playerid, -1, "{0000FF}Voce está a ouvir uma radio oficial da policia de {FF0000}Chicago!");
- }
- if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
- {
- StopAudioStreamForPlayer(playerid);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement