Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(playerVariables[i][pCarSupreme][v] == 1) format(supreme, sizeof(supreme), "{ff0000}[SUPREME]");
- if(playerVariables[i][pCarColor1][v] >= 128 || playerVariables[i][pCarColor2][v] >= 128)
- SCMF(playerid, COLOR_WHITE, "This %s (ID %d) is owned by %s | Age: %d days | Odometer: %.0f km | Insurance: $%d (%d points) | Hidden colors: %d, %d %s %s",aVehicleNames[playerVariables[i][pCarModel][v] - 400],playerVariables[i][pCar][v],playerVariables[i][pNormalName],GetDaysFromTimestamp(playerVariables[i][pCarBuyTime][v]),playerVariables[i][pCarKM][v],playerVariables[i][pCarInsPrice][v],playerVariables[i][pCarIns][v],playerVariables[i][pCarColor1][v],playerVariables[i][pCarColor2][v],vip,supreme);
- else SCMF(playerid, COLOR_WHITE, "This %s (ID %d) is owned by %s | Age: %d days | Odometer: %.0f km | Insurance: $%d (%d points) %s %s",aVehicleNames[playerVariables[i][pCarModel][v] - 400],playerVariables[i][pCar][v],playerVariables[i][pNormalName],GetDaysFromTimestamp(playerVariables[i][pCarBuyTime][v]),playerVariables[i][pCarKM][v],playerVariables[i][pCarInsPrice][v],playerVariables[i][pCarIns][v],vip,supreme);
- }
- }
- }
- }
- gLastCar[playerid] = newcar;
- }
- if(newstate == PLAYER_STATE_SPAWNED) {
- new Float: lwx, Float:lwy, Float:lwz;
- GetPlayerPos(playerid, lwx, lwy, lwz);
- if((lwz > 530.0 && playerVariables[playerid][pInt] == 0) || PlayerToPoint(1000.0, playerid, -1041.9,-1868.4,79.1)) SetPlayerSpawn(playerid);
- if(WantedPoints[playerid] > 0) playerVariables[playerid][pWantedDeaths]++;
- if(playerVariables[playerid][pPremiumAccount] == 1) SetPlayerHealthEx(playerid, 100.0);
- if(playerVariables[playerid][pVIP] == 1) SetPlayerHealthEx(playerid, 100.0);
- if(playerVariables[playerid][pMystic] == 1) SetPlayerHealthEx(playerid, 100.0);
- }
- return 1;
- }
- task HPCheck[30000]() {
- foreach(new x : Player) {
- if(isPlayerLogged(x)) {
- new Float:health;
- GetPlayerHealthEx(x, health);
- if(IsPlayerAFK[x] < 30) SetPlayerHealthEx(x, health -1);
- }
- }
- return 1;
- }
- function CarTow(carid) {
- foreach(new i : Player) if(IsPlayerInVehicle(i, carid)) return 0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement