Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define TICK_SPAWN_VEHICLE 300
- new ac_vehicle_death[MAX_PLAYERS]; // глобальная
- ac_vehicle_death[playerid] = 0; // onplayerconnect
- public OnVehicleDeath(vehicleid, killerid)
- {
- if( killerid != INVALID_PLAYER_ID ) {
- new
- ac_i = GetTickCount();
- if( ac_i < ac_vehicle_death[killerid] + TICK_SPAWN_VEHICLE ) {
- return Kick(killerid);
- }
- ac_vehicle_death[killerid] = ac_i;
- }
- printf("Какого хуя тачка %d %d умерла?", vehicleid, killerid);
- Fd_OnVehicleDeath( vehicleid );
- Strobe_OnVehicleDeath( vehicleid );
- if( vehicleid >= ataxils[0] && vehicleid <= ataxils[1])
- {
- printf("Какого хуя тачка %d %d умерла?", vehicleid, killerid);
- SetVehicleToRespawn(vehicleid);
- DeletePVar(killerid,"CountBackTaxi");
- DeletePVar(killerid,"CheckPointUse");
- DisablePlayerCheckpoint(killerid);
- D::[killerid][dTaxiDuty] = false;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement