SA-MP Forums Archive
Commands to use on console of SA-MP SERVER(windows) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Commands to use on console of SA-MP SERVER(windows) (/showthread.php?tid=102123)



Commands to use on console of SA-MP SERVER(windows) - nitroax - 13.10.2009

Hi ppl,

I need to know some commands to use on console of SA-MP in windows.

I want the cmds for the weather ( like, always night in game)

I want the cmds or FS to have and give money to others players

and i need some FS to do /fix or /repair, for repair the car

Thanks ppl!


Re: Commands to use on console of SA-MP SERVER(windows) - Correlli - 13.10.2009

https://sampwiki.blast.hk/wiki/Controlli...#RCON_Commands


Re: Commands to use on console of SA-MP SERVER(windows) - nitroax - 13.10.2009

where i write this cmds? in the console? or in game after de rcon login?




Re: Commands to use on console of SA-MP SERVER(windows) - Correlli - 13.10.2009

As you wish. If you want to write it to a console then you'll just write it like:
kick 0
but if you want to use it in-game, first login to RCON by typing /rcon login rcon_password and then use it like:
/rcon kick 0


Re: Commands to use on console of SA-MP SERVER(windows) - nitroax - 13.10.2009

and about the FS?

i need one to repair de cars like /fix, i found in the forum ,but didnt work :S


Re: Commands to use on console of SA-MP SERVER(windows) - Luka P. - 13.10.2009

You can't repair car if you're not ingame (not your car).
But you can create a command to fix other's cars ingame.


Re: Commands to use on console of SA-MP SERVER(windows) - nitroax - 13.10.2009

and i want it.

i know i cant repair in game.

i want one fs to repair when im in game, in car


Re: Commands to use on console of SA-MP SERVER(windows) - Luka P. - 13.10.2009

Okay, here's the code
pawn Код:
if(strcmp(cmd,"/fix",true)==0)
{
    if(IsPlayerAdmin(playerid)) // Player must be RCON admin to use this command
    {
        if(IsPlayerInAnyVehicle(playerid)) // Player must be in vehicle to use this command
        {
            new veh = GetPlayerVehicleID(playerid);
            SetVehicleHealth(veh,1000); // I don't know if this is going to work, sorry (veh = vehicle id, 1000 = health)
            SendClientMessage(playerid,COLOR_CODE_HERE,"Your vehicle is fixed!");
            }
        else
        {
            SendClientMessage(playerid,COLOR_CODE_HERE,"You're not in vehicle!");
            }
     }
     return 1;
}