public OnPlayerUpdate(playerid){new Float:Health, Weapon, Ammo; new ora, perc, masodperc; new Float:szzx, Float:szzy, Float:szzz;new panels, doors, lights, tires;new vehicleid = GetPlayerVehicleID(playerid); GetPlayerHealth(playerid, Health); Weapon = GetPlayerWeapon(playerid); Ammo = GetPlayerAmmo(playerid); gettime(ora, perc, masodperc);for(new drot; drot < MAX_DROT; drot++){ if(DrotInfo[drot][Van] == 1) { GetObjectPos(DrotInfo[drot][Object3], szzx, szzy, szzz); if(IsPlayerInRangeOfPoint(playerid, 4.0, szzx, szzy, szzz) && IsPlayerInAnyVehicle(playerid)) { GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires); UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 15); break; } }}
forward CheckMoney(playerid);public CheckMoney(playerid){ new string[128], asd[128], asd2[128], asd3[128];if(pInfo[playerid][pMoney] < 10){format(string, sizeof(string), \"$0000000%i\", pInfo[playerid][pMoney]);TextDrawSetString(Ft[playerid], string);TextDrawShowForPlayer(playerid, Ft[playerid]);TextDrawShowForPlayer(playerid, Box[playerid]);}if(10 <= pInfo[playerid][pMoney] < 100){format(string, sizeof(string), \"$000000%i\", pInfo[playerid][pMoney]);TextDrawSetString(Ft[playerid], string);TextDrawShowForPlayer(playerid, Ft[playerid]);TextDrawShowForPlayer(playerid, Box[playerid]);}if(100 <= pInfo[playerid][pMoney] < 1000){format(string, sizeof(string), \"$00000%i\", pInfo[playerid][pMoney]);TextDrawSetString(Ft[playerid], string);TextDrawShowForPlayer(playerid, Ft[playerid]);TextDrawShowForPlayer(playerid, Box[playerid]);}if(1000 <= pInfo[playerid][pMoney] < 10000){format(string, sizeof(string), \"$0000%i\", pInfo[playerid][pMoney]);TextDrawSetString(Ft[playerid], string);TextDrawShowForPlayer(playerid, Ft[playerid]);TextDrawShowForPlayer(playerid, Box[playerid]);}if(10000 <= pInfo[playerid][pMoney] < 100000){format(string, sizeof(string), \"$000%i\", pInfo[playerid][pMoney]);TextDrawSetString(Ft[playerid], string);TextDrawShowForPlayer(playerid, Ft[playerid]);TextDrawShowForPlayer(playerid, Box[playerid]);}if(100000 <= pInfo[playerid][pMoney] < 1000000){format(string, sizeof(string), \"$00%i\", pInfo[playerid][pMoney]);TextDrawSetString(Ft[playerid], string);TextDrawShowForPlayer(playerid, Ft[playerid]);TextDrawShowForPlayer(playerid, Box[playerid]);}if(1000000 <= pInfo[playerid][pMoney] < 10000000){format(string, sizeof(string), \"$0%i\", pInfo[playerid][pMoney]);TextDrawSetString(Ft[playerid], string);TextDrawShowForPlayer(playerid, Ft[playerid]);TextDrawShowForPlayer(playerid, Box[playerid]);}if(10000000 <= pInfo[playerid][pMoney] < 999999999){format(string, sizeof(string), \"$%i\", pInfo[playerid][pMoney]);TextDrawSetString(Ft[playerid], string);TextDrawShowForPlayer(playerid, Ft[playerid]);TextDrawShowForPlayer(playerid, Box[playerid]);}format(asd, sizeof(asd), \"%s\", Nev(playerid));TextDrawSetString(NevMutat2[playerid], asd);format(asd2, sizeof(asd2), \"Szint: %d\", pInfo[playerid][pOra]);TextDrawSetString(jOra2[playerid], asd2);format(asd3, sizeof(asd3), \"Bank: %d$\", pInfo[playerid][pBankMoney]);TextDrawSetString(BankPenz[playerid], asd3);return 1;}
public OnPlayerRequestClass(playerid, classid)
TextDrawShowForPlayer(playerid, Ft[playerid]);TextDrawShowForPlayer(playerid, Box[playerid]);
iNewPlayerMoney[playerid] = GetPlayerMoney(playerid);
public OnPlayerUpdate(playerid){new Float:Health, Weapon, Ammo; new ora, perc, masodperc; new Float:szzx, Float:szzy, Float:szzz;new panels, doors, lights, tires;new vehicleid = GetPlayerVehicleID(playerid);new GivePlayerMoney
GivePlayerMoney(playerid,1)