Respawn car command
#7

This will respawn a certain vehicle ID you entered.

Requirements : ZCMD + sscanf
pawn Код:
CMD:respawnveh( playerid, params[ ] )
{
    if ( !IsPlayerAdmin( playerid  ) )
        return SendClientMessage( playerid, -1, "ERROR: You aren't a RCON admin." );

    static
        vehID
    ;

    if ( sscanf( params, "i",  vehID ) )
        return SendClientMessage( playerid, -1, "SYNTAX: /respawnveh < vehID >" );

    if ( vehID == INVALID_VEHICLE_ID )
        return SendClientMessage( playerid, -1, "ERROR: Invalid vehicle ID." );

    SetVehicleToRespawn( vehID );

    SendClientMessage( playerid, -1, "Vehicle has been respawned succesfully." );

    return 1;
}
Hope it helps you.
Reply


Messages In This Thread
Respawn car command - by Trucker[UK] - 02.08.2011, 12:49
AW: Respawn car command - by Drebin - 02.08.2011, 12:52
Re: AW: Respawn car command - by Trucker[UK] - 02.08.2011, 12:53
Re: Respawn car command - by sleepysnowflake - 02.08.2011, 12:54
Re: Respawn car command - by antonio112 - 02.08.2011, 12:57
Re: Respawn car command - by Trucker[UK] - 02.08.2011, 12:59
Re: Respawn car command - by Basicz - 02.08.2011, 13:06
Re: Respawn car command - by Mean - 02.08.2011, 13:10
Re: Respawn car command - by Trucker[UK] - 02.08.2011, 13:29
Re: Respawn car command - by Trucker[UK] - 21.09.2011, 22:57

Forum Jump:


Users browsing this thread: 1 Guest(s)