Jet Pack broblem
#1

I copied this from one Gamemode.

Quote:

if(strcmp(cmdtext, "/fly", true)==0)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USE JETPACK);
SendClientMessage(playerid,COLOR,"* Got Jet-Pack");
return 1;
}

Its ok then i pressing f5, but then in server i type "/fly" I dont got jet pack, whats a problem?
Reply
#2

SPECIAL_ACTION_USEJETPACK

You have a space between use and jetpack
Reply
#3

Still i cant get it in game.
Reply
#4

Are you getting any errors? Without the space that should work fine.
Reply
#5

I dont get any error, then i go to server and type /fly i dont get Jet Pack..wtf.
Reply
#6

Dude just use:

pawn Код:
CMD:jetpack(playerid, params[])
{
new Float:Y,Float:Z,Float:X;
GetPlayerPos(playerid,X,Y,Z);
CreatePickup(370,4,X,Y,Z);
GameTextForPlayer(playerid,"\n\n\n~w~Your ~g~Jetpack!",3000,5);
return true;
}
Reply
#7

pawn Код:
SetPlayerSpecialAction(playerid,2);
Reply
#8

Just use the code by Delux13, the '2' is the same as typing SPECIAL_ACTION_USEJETPACK.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)