Advertisement
Guest User

Untitled

a guest
Sep 26th, 2023
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. if(playerVariables[i][pCarSupreme][v] == 1) format(supreme, sizeof(supreme), "{ff0000}[SUPREME]");
  2.  
  3. if(playerVariables[i][pCarColor1][v] >= 128 || playerVariables[i][pCarColor2][v] >= 128)
  4. 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);
  5.  
  6. 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);
  7. }
  8. }
  9. }
  10. }
  11. gLastCar[playerid] = newcar;
  12. }
  13. if(newstate == PLAYER_STATE_SPAWNED) {
  14. new Float: lwx, Float:lwy, Float:lwz;
  15. GetPlayerPos(playerid, lwx, lwy, lwz);
  16. if((lwz > 530.0 && playerVariables[playerid][pInt] == 0) || PlayerToPoint(1000.0, playerid, -1041.9,-1868.4,79.1)) SetPlayerSpawn(playerid);
  17. if(WantedPoints[playerid] > 0) playerVariables[playerid][pWantedDeaths]++;
  18.  
  19. if(playerVariables[playerid][pPremiumAccount] == 1) SetPlayerHealthEx(playerid, 100.0);
  20. if(playerVariables[playerid][pVIP] == 1) SetPlayerHealthEx(playerid, 100.0);
  21. if(playerVariables[playerid][pMystic] == 1) SetPlayerHealthEx(playerid, 100.0);
  22. }
  23. return 1;
  24. }
  25.  
  26. task HPCheck[30000]() {
  27. foreach(new x : Player) {
  28. if(isPlayerLogged(x)) {
  29. new Float:health;
  30. GetPlayerHealthEx(x, health);
  31. if(IsPlayerAFK[x] < 30) SetPlayerHealthEx(x, health -1);
  32. }
  33. }
  34. return 1;
  35. }
  36.  
  37. function CarTow(carid) {
  38. foreach(new i : Player) if(IsPlayerInVehicle(i, carid)) return 0;
  39. return 1;
  40. }
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement