Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/fixcar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new house = PlayerInfo[playerid][pPhousekey];
- GetPlayerName(playerid, playername, sizeof(playername));
- if (house != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
- {
- if(SBizzInfo[8][sbProducts] == 0)
- {
- GameTextForPlayer(playerid, "~r~Außerhalb der Zone", 5000, 1);
- return 1;
- }
- if(CarRespawn(house+1))
- {
- GameTextForPlayer(playerid, "~w~Fahrzeug~n~~g~wurde repariert~n~~r~-1000$", 5000, 1);
- sdx_GivePlayerMoney(playerid,-1000);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- SBizzInfo[8][sbTill] += 1000;//towcar buisness
- ExtortionSBiz(8, 1000);
- SBizzInfo[8][sbProducts]--;
- }
- else
- {
- GameTextForPlayer(playerid, "~w~Fahrzeug~n~wird ~r~benutzt", 5000, 1);
- }
- }
- else
- {
- GameTextForPlayer(playerid, "~w~Du bist kein Hausbesitzer", 5000, 1);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement