- 0
problema rentcar si rentbike
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Papana
deci am aceste comenzi rentbike si rentcar
merg doar ca e problema ca daca cobor din masina/bike
cand ma urc iar trebui sa o inchiriez
if(strcmp(cmd, "/rentcar", true) == 0) { if(IsPlayerConnected(playerid)) { if(GetPlayerVehicleID(playerid) >= 135 && GetPlayerVehicleID(playerid) <= 146) { if(SBizzInfo[0][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; } if (GetPlayerCash(playerid) < SBizzInfo[1][sbEntranceCost]) { SendClientMessage(playerid, COLOR_GRAD2, " Nu ai atat de mult cash !"); return 1; } /*if(PlayerInfo[playerid][pPbiskey] == 1) { GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3); TogglePlayerControllable(playerid, 1); return 1; }*/ GivePlayerCash(playerid,-SBizzInfo[0][sbEntranceCost]); SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost]; ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]); SBizzInfo[0][sbProducts]--; OnPropUpdate(); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SendClientMessage(playerid, COLOR_YELLOW2, "You can start the engine up now !"); TogglePlayerControllable(playerid, 1); GameTextForPlayer(playerid, string, 5000, 3); } if(GetPlayerVehicleID(playerid) >= 147 && GetPlayerVehicleID(playerid) <= 154) { if(SBizzInfo[1][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; } if (GetPlayerCash(playerid) < SBizzInfo[1][sbEntranceCost]) { SendClientMessage(playerid, COLOR_GRAD2, " Nu ai atat de mult cash !"); return 1; } /*if(PlayerInfo[playerid][pPbiskey] == 1) { GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3); TogglePlayerControllable(playerid, 1); return 1; }*/ GivePlayerCash(playerid,-SBizzInfo[1][sbEntranceCost]); SBizzInfo[1][sbTill] += SBizzInfo[1][sbEntranceCost]; ExtortionSBiz(1, SBizzInfo[1][sbEntranceCost]); SBizzInfo[1][sbProducts]--; OnPropUpdate(); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SendClientMessage(playerid, COLOR_YELLOW2, "You can start the engine up now !"); TogglePlayerControllable(playerid, 1); GameTextForPlayer(playerid, string, 5000, 3); } } return 1; } if(strcmp(cmd, "/rentbike", true) == 0) { if(IsPlayerConnected(playerid)) { if(GetPlayerVehicleID(playerid) >= 112 && GetPlayerVehicleID(playerid) <= 130) { if(SBizzInfo[0][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; } /*if(PlayerInfo[playerid][pPbiskey] == 0) { GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3); TogglePlayerControllable(playerid, 1); return 1; }*/ if (GetPlayerCash(playerid) < SBizzInfo[0][sbEntranceCost]) { SendClientMessage(playerid, COLOR_GRAD2, " Nu ai atat de mult cash !"); return 1; } GivePlayerCash(playerid,-SBizzInfo[0][sbEntranceCost]); SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost]; ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]); SBizzInfo[0][sbProducts]--; OnPropUpdate(); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); TogglePlayerControllable(playerid, 1); GameTextForPlayer(playerid, string, 5000, 3); } } return 1; }2 answers to this question
Recommended Posts