Commands to use on console of SA-MP SERVER(windows)
#1

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!
Reply
#2

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

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

Reply
#4

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
Reply
#5

and about the FS?

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

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.
Reply
#7

and i want it.

i know i cant repair in game.

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

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)