[HELP] Command
#1

I tried to make an command, when leader type /lcr to respawn the cars faction.


pawn Код:
if(strcmp(cmd, "/lcncarrespawn", true) == 0 || strcmp(cmd, "/lcr", true) == 0)
    {
        if (PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pRank] == 6)
        {
            new tmpcar = GetPlayerVehicleID(playerid);
            if(IsAlcnCar(tmpcar))
            {
                for(new player=0; player<MAX_PLAYERS; player++)
                {
                    if(!IsVehicleOccupied(player)) SetVehicleToRespawn(player);
                }
            }
        }
        return 1;
    }
I put this line "IsAlcnCar", but he respawn all cars on server.
Reply


Messages In This Thread
[HELP] Command - by monster010 - 14.05.2014, 19:13
Re: [HELP] Command - by Madd92 - 14.05.2014, 20:17

Forum Jump:


Users browsing this thread: 1 Guest(s)