14.05.2011, 20:29
Just curious if anyone knows which Callback is activated upon Jetpack removal...
The reason I ask is this...
If I acquire and remove a JetPack via the OnPlayerCommandText all goes well...
The Jetpack actually disappears upon removal...
if(strcmp(cmd,"/JET",true)==0){
SetPlayerSpecialAction(playerid,2);
return 1;}
if(strcmp(cmd,"/JETNO",true)==0){
if(GetPlayerSpecialAction(playerid)==2){
new Float:jetx,Float:jety,Float:jetz;
GetPlayerPos(playerid,jetx,jety,jetz);
SetPlayerPos(playerid,jetx,jety,jetz);
SetPlayerSpecialAction(playerid,0);}
return 1;}
Further, I use Incognito's streamer and putting the "JETNO" code in the OnPlayerLeaveDynamicArea works as well...
However, while hitting the regular old assigned Enter/Exit Vehicle key DOES remove the Jetpack, is not satisfactory as it leaves the Jetpack visible and re-accessible...
I have put "checks" in the OnPlayerExitVehicle, OnPlayerSpecialAction, OnPlayerStateChange and OnPlayerUpdate but none of them trigger...
What am I missing?
Can anyone shed some light on this troublesome conundrum?
You can reply to nighthawk231@yahoo.com as well...
Thanx in advance...
The reason I ask is this...
If I acquire and remove a JetPack via the OnPlayerCommandText all goes well...
The Jetpack actually disappears upon removal...
if(strcmp(cmd,"/JET",true)==0){
SetPlayerSpecialAction(playerid,2);
return 1;}
if(strcmp(cmd,"/JETNO",true)==0){
if(GetPlayerSpecialAction(playerid)==2){
new Float:jetx,Float:jety,Float:jetz;
GetPlayerPos(playerid,jetx,jety,jetz);
SetPlayerPos(playerid,jetx,jety,jetz);
SetPlayerSpecialAction(playerid,0);}
return 1;}
Further, I use Incognito's streamer and putting the "JETNO" code in the OnPlayerLeaveDynamicArea works as well...
However, while hitting the regular old assigned Enter/Exit Vehicle key DOES remove the Jetpack, is not satisfactory as it leaves the Jetpack visible and re-accessible...
I have put "checks" in the OnPlayerExitVehicle, OnPlayerSpecialAction, OnPlayerStateChange and OnPlayerUpdate but none of them trigger...
What am I missing?
Can anyone shed some light on this troublesome conundrum?
You can reply to nighthawk231@yahoo.com as well...
Thanx in advance...