Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new string[256];
- RemovePlayerAttachedObject(playerid, SLOT);
- if(newstate == PLAYER_STATE_ONFOOT)
- {
- TogglePlayerControllable(playerid, 1);
- if(PlayerKarting[playerid] > 0 && PlayerInKart[playerid] > 0)
- {
- PlayerInKart[playerid] = 0;
- KartingPlayers --;
- }
- if(TransportDuty[playerid] > 0)
- {
- if(TransportDuty[playerid] == 1)
- {
- TaxiDrivers -= 1;
- }
- TransportDuty[playerid] = 0;
- format(string, sizeof(string), "* Acum numai esti la servici si ai castigat $%d pentru cat ai lucrat.", TransportMoney[playerid]);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, TransportMoney[playerid]);
- ConsumingMoney[playerid] = 1; TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement