/ftow
#1

Why does this return Server Unknown Command in game?

pawn Код:
if(strcmp(cmd, "/ftow", true) ==0)
    {
    if(PlayerInfo[playerid][LoggedIn] == 1)
    {
        if(PlayerInfo[playerid][Faction] == 1)
        {
            if(PlayerInfo[playerid][Rank] >= 4)
            {
                for(new i = 0;i<MAX_VEHICLES;i++)
                {
                    if(CarSystem[i][Carfaction] == PlayerInfo[playerid][Faction])
                    {
                        SetVehicleToRespawn(i);
                    }
                }
                SendClientMessage(playerid, COLOR_WHITE, "You have successfully faction towed your faction vehicles");
            }
            else return SendClientMessage(playerid, COLOR_RED, "You need to be aleast rank 4 to faction tow.");
        }
        else return SendClientMessage(playerid, COLOR_RED, "You are not in a faction.");
    }
    else return SendClientMessage(playerid, COLOR_RED, "You need to be logged in to perform this command.");
    return 1;
    }
Reply


Messages In This Thread
/ftow - by Mystique - 16.11.2010, 15:20
Re: /ftow - by The_Moddler - 16.11.2010, 15:36
Re: /ftow - by Mystique - 16.11.2010, 15:41
Re: /ftow - by dark_clown - 16.11.2010, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)