[HELP] Respawn a certain carid?
#6

Its not the vehicle id you want its the modelid (i think) use GetVehicleModel like this
pawn Код:
if(strcmp(cmd, "/respawnfactioncars", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pLeader] == 1)
            {
                for(new i = 0; i < MAX_VEHICLES; i++)
                {
                    if(GetVehicleModel(i) == 598)
                    {
                        SetVehicleToRespawn(i);
                    }
                }
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "** %s has respawned all faction vehicles. **", sendername);
                SendTeamMessage(1, COLOR_RED, string);
            }
            else
            {
                SendClientMessage(playerid, COLOR_RED, "    You are not authorized to use that command.");
            }
        }
        return 1;
    }
Reply


Messages In This Thread
[HELP] Respawn a certain carid? - by Fredden1993 - 03.11.2010, 11:57
Re: [HELP] Respawn a certain carid? - by woot - 03.11.2010, 11:59
Re: [HELP] Respawn a certain carid? - by Fredden1993 - 03.11.2010, 12:04
Re: [HELP] Respawn a certain carid? - by iggy1 - 03.11.2010, 12:17
Re: [HELP] Respawn a certain carid? - by Fredden1993 - 03.11.2010, 12:27
Re: [HELP] Respawn a certain carid? - by iggy1 - 03.11.2010, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)