Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.93 KB | None | 0 0
  1. #define TICK_SPAWN_VEHICLE 300
  2.  
  3. new ac_vehicle_death[MAX_PLAYERS]; // глобальная
  4.  
  5. ac_vehicle_death[playerid] = 0; // onplayerconnect
  6.  
  7. public OnVehicleDeath(vehicleid, killerid)
  8. {
  9.     if( killerid != INVALID_PLAYER_ID ) {
  10.         new
  11.             ac_i = GetTickCount();
  12.        
  13.         if( ac_i < ac_vehicle_death[killerid] + TICK_SPAWN_VEHICLE ) {
  14.             return Kick(killerid);
  15.         }
  16.         ac_vehicle_death[killerid] = ac_i;
  17.     }
  18.  
  19.     printf("Какого хуя тачка %d %d умерла?", vehicleid, killerid);
  20.     Fd_OnVehicleDeath( vehicleid );
  21.     Strobe_OnVehicleDeath( vehicleid );
  22.     if( vehicleid >= ataxils[0] && vehicleid <= ataxils[1])
  23.     {
  24.         printf("Какого хуя тачка %d %d умерла?", vehicleid, killerid);
  25.         SetVehicleToRespawn(vehicleid);
  26.         DeletePVar(killerid,"CountBackTaxi");
  27.         DeletePVar(killerid,"CheckPointUse");
  28.         DisablePlayerCheckpoint(killerid);
  29.         D::[killerid][dTaxiDuty] = false;
  30.     }
  31.     return true;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement