Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Paralysis(playerid)
- {
- if(pInfo[playerid][Paralyzed] == 0)
- {
- SendClientMessage(playerid, COLOR_INFO, "(Info):"INFO" You have drank a bottle of poisoned water, you are paralyzed.");
- SendClientMessage(playerid, COLOR_INFO, "(Info):"INFO" The paralysis will wear off in 4 minutes.");
- if(!IsPlayerInAnyVehicle(playerid))
- {
- ApplyAnimation(playerid, "PED", "FLOOR_hit", 4.1, 0, 1, 1, 1, 1, 1);
- ApplyAnimation(playerid, "PED", "FLOOR_hit", 4.1, 0, 1, 1, 1, 1, 1);
- }
- //TogglePlayerControllable(playerid, 0);
- pInfo[playerid][Paralyzed] = 1;
- SetTimerEx("Paralysis", 240000, false, "i", playerid);
- }
- else
- {
- pInfo[playerid][Paralyzed] = 0;
- TogglePlayerControllable(playerid, 1);
- if(IsPlayerInAnyVehicle(playerid))
- {
- new vehID, seatID;
- vehID = GetPlayerVehicleID(playerid);
- seatID = GetPlayerVehicleSeat(playerid);
- ClearAnimations(playerid, 1);
- PutPlayerInVehicle(playerid, vehID, seatID);
- }
- ClearAnimations(playerid, 1);
- SendClientMessage(playerid, COLOR_INFO, "(Info):"INFO" You are slowly regaining feeling all over your body.");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment