[zcmd] respawn
#3

There is nothing like
pawn Код:
if(!IsAdmin(playerid, 1))
And
pawn Код:
PlayerName(playerid)
at Jordiee's code. I suggest you to look the code before post something (code)
Sarma93's code with some changes.
pawn Код:
CMD:vrespawn(playerid, params[])
{
    if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not admin!");
    new
        bool:vehicleused[MAX_VEHICLES];
    for (new i=0; i < MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i)) {
            vehicleused[GetPlayerVehicleID(i)] = true;
        }
    }
    for (new i=1; i < MAX_VEHICLES; i++) {
        if(!vehicleused[i]) {
            SetVehicleToRespawn(i);
        }
    }
    return 1;
}
Reply


Messages In This Thread
[zcmd] respawn - by Jordiee - 03.12.2011, 12:32
Re: [zcmd] respawn - by Sarma93 - 03.12.2011, 12:47
Re: [zcmd] respawn - by Kostas' - 03.12.2011, 12:58
Re: [zcmd] respawn - by Jordiee - 03.12.2011, 13:04
Re: [zcmd] respawn - by Kostas' - 03.12.2011, 13:06

Forum Jump:


Users browsing this thread: 1 Guest(s)