How do I shake the screen?
#4

Quote:
Originally Posted by NiiRV4N4
Quote:
Originally Posted by ViruZZzZ_ChiLLL
SetPlayerDrunkLevel?
How do I set everyone drunk level within a 30 meter distance of one player?
pawn Код:
stock Float:GetDistanceBetweenPlayers(p1,p2){
    new Float:x1,Float:y1,Float:z1,Float:x3,Float:y3,Float:z3;
    if (!IsPlayerConnected(p1) || !IsPlayerConnected(p2)){
        return -1.00;
    }
    GetPlayerPos(p1,x1,y1,z1);
    GetPlayerPos(p2,x3,y3,z3);
    return floatsqroot(floatpower(floatabs(floatsub(x3,x1)),2)+floatpower(floatabs(floatsub(y3,y1)),2)+floatpower(floatabs(floatsub(z3,z1)),2));
}

if (GetDistanceBetweenPlayers(playerid, giveplayerid) > 30) return SendClientMessage(playerid, red, "ERROR : Your not near the player!");
Use Sscanf
Reply


Messages In This Thread
How do I shake the screen? - by NiiRV4N4 - 07.06.2010, 03:18
Re: How do I shake the screen? - by ViruZZzZ_ChiLLL - 07.06.2010, 03:23
Re: How do I shake the screen? - by NiiRV4N4 - 07.06.2010, 03:24
Re: How do I shake the screen? - by ViruZZzZ_ChiLLL - 07.06.2010, 03:27
Re: How do I shake the screen? - by NiiRV4N4 - 07.06.2010, 03:29
Re: How do I shake the screen? - by TheChaoz - 07.06.2010, 03:45

Forum Jump:


Users browsing this thread: 1 Guest(s)