[Help] Jatpack - 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: [Help] Jatpack (
/showthread.php?tid=176567)
[Help] Jatpack -
Alex_Valde - 13.09.2010
How can I make command to give Jatpack ?
I think I know how to start but i don't know how to finish cmd...
I have this cmd for Admins, but with this cmd only admin can spawn Jatpack to him
pawn Код:
if(strcmp(cmd,"/jetpack",true)==0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 4)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Enjoy the jetpack!");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command!");
return 1;
}
}
}
And I wanna make That only player who's admin lvl4 can give jatpack to player... But im confuzed when I try to make that script... :S
Re: [Help] Jatpack -
Cameltoe - 13.09.2010
Quote:
Originally Posted by Alex_Valde
How can I make command to give Jatpack ?
I think I know how to start but i don't know how to finish cmd...
I have this cmd for Admins, but with this cmd only admin can spawn Jatpack to him
pawn Код:
if(strcmp(cmd,"/jetpack",true)==0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 4) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Enjoy the jetpack!"); return 1; } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command!"); return 1; } } }
And I wanna make That only player who's admin lvl4 can give jatpack to player... But im confuzed when I try to make that script... :S
|
go to the wiki and search for sscanf and dcmd
Re: [Help] Jatpack -
Alex_Valde - 13.09.2010
Quote:
Originally Posted by Cameltoe
go to the wiki and search for sscanf and dcmd 
|
LOL...Thanks!
Re: [Help] Jatpack -
Cameltoe - 13.09.2010
Quote:
Originally Posted by Alex_Valde
LOL...Thanks! 
|
Ur welcome