Guest User

Untitled

a guest
Aug 19th, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.23 KB | None | 0 0
  1. public Paralysis(playerid)
  2. {
  3.     if(pInfo[playerid][Paralyzed] == 0)
  4.     {
  5.             SendClientMessage(playerid, COLOR_INFO, "(Info):"INFO" You have drank a bottle of poisoned water, you are paralyzed.");
  6.         SendClientMessage(playerid, COLOR_INFO, "(Info):"INFO" The paralysis will wear off in 4 minutes.");
  7.  
  8.             if(!IsPlayerInAnyVehicle(playerid))
  9.             {
  10.             ApplyAnimation(playerid, "PED", "FLOOR_hit", 4.1, 0, 1, 1, 1, 1, 1);
  11.             ApplyAnimation(playerid, "PED", "FLOOR_hit", 4.1, 0, 1, 1, 1, 1, 1);
  12.         }
  13.         //TogglePlayerControllable(playerid, 0);
  14.        
  15.         pInfo[playerid][Paralyzed] = 1;
  16.        
  17.         SetTimerEx("Paralysis", 240000, false, "i", playerid);
  18.     }
  19.     else
  20.     {
  21.             pInfo[playerid][Paralyzed] = 0;
  22.        
  23.             TogglePlayerControllable(playerid, 1);
  24.  
  25.             if(IsPlayerInAnyVehicle(playerid))
  26.             {
  27.                 new vehID, seatID;
  28.  
  29.                 vehID = GetPlayerVehicleID(playerid);
  30.                 seatID = GetPlayerVehicleSeat(playerid);
  31.            
  32.                 ClearAnimations(playerid, 1);
  33.            
  34.                 PutPlayerInVehicle(playerid, vehID, seatID);
  35.             }
  36.        
  37.         ClearAnimations(playerid, 1);
  38.        
  39.         SendClientMessage(playerid, COLOR_INFO, "(Info):"INFO" You are slowly regaining feeling all over your body.");
  40.     }
  41.     return 1;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment