Need help
#1

need help,I have failed on this script can someone help me
Код:
 if(IsPlayerInAnyVehicle(playerid))
     	{
     	    if(GetVehicleSpeed(playerid) > 200)
     	    {
     	        TogglePlayerControllable(playerid, false);
                SetPlayerPos(playerid, 1941.1534,-1100.2391,-23.7885);
                ShowPlayerDialog(playerid, DIALOG_PRAVILA,DIALOG_STYLE_MSGBOX,"Anti-Hack", "{FFCC00}[Anticheat]"WHITE"[Anti-Cheat] You Have Been Banned for using Speed	Hack!!!","Ok","");
                BanEx(playerid, "Speed Hack");
			}
		}
Код:
stock GetVehicleSpeed(playerid)
{
    new Float:ST[4];
    if(IsPlayerInAnyVehicle(playerid))
    GetVehicleVelocity(GetPlayerVehicleID(playerid),ST[0],ST[1],ST[2]);
    else GetPlayerVelocity(playerid,ST[0],ST[1],ST[2]);
    ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 178.8617875;
    return floatround(ST[3]);
}
Reply


Messages In This Thread
Need help - by lanix - 21.04.2015, 17:24
Re: Need help - by Fel486 - 21.04.2015, 17:25
Re: Need help - by lanix - 21.04.2015, 17:33

Forum Jump:


Users browsing this thread: 1 Guest(s)