SHARE
TWEET

Untitled

a guest May 23rd, 2019 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. stock SendPersonVehicleToShtraf(vehicleid) {
  3.     new ownerid = VehicleInfo[vehicleid][vOwnerID];
  4.     if(ownerid == INVALID_VEHICLE_ID) return SCM(ownerid, COLOR_RED, "Ошибка 403. Обратитесь к администрации");
  5.     new itemid = GetPlayerPersonVehicleItem(ownerid, vehicleid);
  6.     if(itemid==-1) return SCM(ownerid, COLOR_RED, "Ошибка 404. Обратитесь к администрации");
  7.     VehicleInfo[pTemp[ownerid][pVehicleID][itemid]][vOwnerID] = INVALID_PLAYER_ID;
  8.     DestroyVehicle(pTemp[ownerid][pVehicleID][itemid]);
  9.     pTemp[ownerid][pVehicleID][itemid] = INVALID_VEHICLE_ID;
  10.     pTemp[ownerid][pVehsIsParking][itemid] = false;
  11.     pTemp[ownerid][pVehsInShtraf][itemid] = 1;
  12.     SCM(ownerid, COLOR_RED, "Ваш транспорт был отправлен на штрафстоянку");
  13.     mysql_query_string[0] = EOS;
  14.     mysql_format(dbHandle, mysql_query_string, sizeof(mysql_query_string), "UPDATE `accounts` SET `VehsShtraf` = '%d,%d,%d,%d,%d', `VehsFuel` = '%.1f,%.1f,%.1f,%.1f,%.1f', `VehsPark` = '%d,%d,%d,%d,%d' WHERE `name` = '%s'",
  15.     pTemp[ownerid][pVehsInShtraf][0],pTemp[ownerid][pVehsInShtraf][1],pTemp[ownerid][pVehsInShtraf][2],pTemp[ownerid][pVehsInShtraf][3],pTemp[ownerid][pVehsInShtraf][4],
  16.     pTemp[ownerid][pVehsFuel][0],pTemp[ownerid][pVehsFuel][1],pTemp[ownerid][pVehsFuel][2],pTemp[ownerid][pVehsFuel][3],pTemp[ownerid][pVehsFuel][4],
  17.     pTemp[ownerid][pVehsIsParking][0],pTemp[ownerid][pVehsIsParking][1],pTemp[ownerid][pVehsIsParking][2],pTemp[ownerid][pVehsIsParking][3],pTemp[ownerid][pVehsIsParking][4],
  18.     GetName(ownerid));
  19.     mysql_tquery(dbHandle, mysql_query_string, "", "");
  20.     return true;
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top