17.06.2017, 01:24
So, when the player spawns this code runs:
I want to change that to a different function that happens immediately when the player goes into BrutalM mode. What can I do?
PHP Code:
public OnPlayerSpawn(playerid)
{
Character[playerid][Cuffed] = 0;
if(Character[playerid][BrutalM] == 1)
{
SetPlayerPos(playerid, BMPos[playerid][0], BMPos[playerid][1], BMPos[playerid][2]);
DeathT = SetTimerEx("AcceptD", 120000, false, "i", playerid);
ApplyAnimation(playerid, "PED", "FLOOR_hit_f", 4.1, 0, 1, 1, 1, 300000, 1);
LegHit[playerid] = 0;
}