Can Someone Convert This? - 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)
+--- Thread: Can Someone Convert This? (
/showthread.php?tid=373967)
Can Someone Convert This? -
Biess - 01.09.2012
pawn Код:
if(!strcmp(cmdtext, "/jetpack", true))
{
if(gPlayerClass[playerid] == JETTROOPER)
{
SetPlayerSpecialAction(playerid,2);command
return 1;
}
}
return SendClientMessage(playerid, 0xAA3333AA, "ERROR: You Need to be Jettrooper to Fly a Jetpack!");
}
Can someone convert that into CMD: ?
Re: Can someone.. -
Misiur - 01.09.2012
Your thread name is supposed to be summary of what do you need. Keep that in mind.
pawn Код:
CMD:jetpack(playerid, params[]) {
return ((gPlayerClass[playerid] == JETTROOPER) ? (SetPlayerSpecialAction(playerid,2)) : (SendClientMessage(playerid, 0xAA3333AA, "ERROR: You Need to be Jettrooper to Fly a Jetpack!")));
}
Re: Can Someone Convert This? -
[HK]Ryder[AN] - 01.09.2012
Here you go
pawn Код:
CMD:jetpack(playerid, params[])
{
if(gPlayerClass[playerid] == JETTROOPER)
{
SetPlayerSpecialAction(playerid,2);command
return 1;
}
return SendClientMessage(playerid, 0xAA3333AA, "ERROR: You Need to be Jettrooper to Fly a Jetpack!");
}
Re: Can Someone Convert This? -
sniperwars - 01.09.2012
pawn Код:
COMMAND:jetpack(playerid, params[])
{
if(gPlayerClass[playerid] == JETTROOPER)
{
SetPlayerSpecialAction(playerid, 2);command
return 1;
}
return SendClientMessage(playerid, 0xAA3333AA, "ERROR: You Need to be Jettrooper to Fly a Jetpack!");
}
Re: Can Someone Convert This? -
Biess - 01.09.2012
Thanks all worked
Re: Can Someone Convert This? -
Biess - 01.09.2012
And another question.
I need a /dis (Guise) command for spys only
I got these teams
TEAM_GERMANY 0
TEAM_IRAQ 1
TEAM_ENGLAND 2
TEAM_USA 3
TEAM_BANGLADESH 4
Thanks. [REP++ IF IT WORKS]
Re: Can Someone Convert This? -
Biess - 01.09.2012
bumb
Re: Can Someone Convert This? -
[HK]Ryder[AN] - 02.09.2012
Can u show us wat code u use to check if player is spy
Re: Can Someone Convert This? -
Biess - 02.09.2012
if(gPlayerClass[playerid] == SPY)
Re: Can Someone Convert This? -
XtremeR - 02.09.2012
dude ur copying a server and thats just not right..
Reported