Advertisement
Guest User

Untitled

a guest
Aug 28th, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. stock StateChange(playerid)
  2. {
  3.     if(tInfo[playerid][tloaded])
  4.     {
  5.         if(Settings[detection][VEHICLERELATEDTAYLOR])
  6.         {
  7.             tInfo[playerid][SCTime]++;
  8.             if(tInfo[playerid][CurrentState] == PLAYER_STATE_DRIVER && tInfo[playerid][LastState] == PLAYER_STATE_DRIVER)
  9.             {
  10.                 PunishForType(playerid, VEHICLERELATEDTAYLOR);
  11.                 return 0;
  12.             }
  13.             else if(tInfo[playerid][SCTime] > 3)
  14.             {
  15.                 PunishForType(playerid, VEHICLERELATEDTAYLOR);
  16.                 return 0;
  17.             }
  18.         }
  19.     }
  20.     return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement