Advertisement
Guest User

Untitled

a guest
May 24th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. public OnPlayerStateChange(playerid, newstate, oldstate)
  2. {
  3. new string[256];
  4. RemovePlayerAttachedObject(playerid, SLOT);
  5. if(newstate == PLAYER_STATE_ONFOOT)
  6. {
  7. TogglePlayerControllable(playerid, 1);
  8. if(PlayerKarting[playerid] > 0 && PlayerInKart[playerid] > 0)
  9. {
  10. PlayerInKart[playerid] = 0;
  11. KartingPlayers --;
  12. }
  13. if(TransportDuty[playerid] > 0)
  14. {
  15. if(TransportDuty[playerid] == 1)
  16. {
  17. TaxiDrivers -= 1;
  18. }
  19. TransportDuty[playerid] = 0;
  20. format(string, sizeof(string), "* Acum numai esti la servici si ai castigat $%d pentru cat ai lucrat.", TransportMoney[playerid]);
  21. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  22. GivePlayerCash(playerid, TransportMoney[playerid]);
  23. ConsumingMoney[playerid] = 1; TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement