SA-MP Forums Archive
Is this possible - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Is this possible (/showthread.php?tid=277508)



Is this possible - xbox360boy66 - 18.08.2011

Is there a command were if i type in "/dive" or sommin like that i would go up really high and have a parachute then i can free fall down then open parachute..


Re: Is this possible - Darnell - 18.08.2011

There is, you need to create it.


Re: Is this possible - xbox360boy66 - 18.08.2011

Quote:
Originally Posted by Darnell
Посмотреть сообщение
There is, you need to create it.
i dont know how to... :/


Re: Is this possible - PrawkC - 18.08.2011

SetPlayerPos to their current position + like 100 to their Z, and then GivePlayerWeapon parachute.


Re: Is this possible - [MG]Dimi - 18.08.2011

PHP код:
new Float:x,Float:y,Float:z;

public 
OnPlayerCommandText(playerid,cmdtext[])
{
    if(!
strcmp("/dive",cmdtext,true))
    {
        
GetPlayerPos(playerid,x,y,z);
        
SetPlayerPos(playerid,x,y,z+1000.0);
        
GivePlayerWeapon(playerid,46,1);
        
SendClientMessage(playerid,0x00FF00FF,"You are diving!");
        
GameTextForPlayer(playerid,"~b~dive!~n~~g~dive!~n~~r~Dive!",3000,3);
        return 
1;
    }
    return 
0;




Re: Is this possible - xbox360boy66 - 18.08.2011

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
PHP код:
new Float:x,Float:y,Float:z;
public 
OnPlayerCommandText(playerid,cmdtext[])
{
    if(!
strcmp("/dive",cmdtext,true))
    {
        
GetPlayerPos(playerid,x,y,z);
        
SetPlayerPos(playerid,x,y,z+1000.0);
        
GivePlayerWeapon(playerid,46,1);
        
SendClientMessage(playerid,0x00FF00FF,"You are diving!");
        
GameTextForPlayer(playerid,"~b~dive!~n~~g~dive!~n~~r~Dive!",3000,3);
        return 
1;
    }
    return 
0;

CHEERS DUDE!!!!!