Help for command to respawn only 1 veh
#1

Hey, i want to create a command for respawn a only vehicle and not all cars...
Please help me..
Thanks
Reply
#2

Using y_commands:

pawn Код:
YCMD:respawnveh(playerid, params[], help)
{
    if ( help ) return SendClientMessage( playerid, -1, #Respawns a car );
    if ( isnull ( params ) )
    {
        SetVehicleToRespawn( GetPlayerVehicleID ( playerid  ) );
        SendClientMessage( playerid, -1, #Vehicle respawned );
    }
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)