Can Someone Convert This?
#1

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: ?
Reply
#2

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!")));
}
Reply
#3

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!");
}
Reply
#4

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!");
}
Reply
#5

Thanks all worked
Reply
#6

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]
Reply
#7

bumb
Reply
#8

Can u show us wat code u use to check if player is spy
Reply
#9

if(gPlayerClass[playerid] == SPY)
Reply
#10

dude ur copying a server and thats just not right..
Reported
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)