- 0
Comanda /servername
-
Similar Content
-
- 2 replies
- 2.003 views
-
- 1 answer
- 449 views
-
- 2 answers
- 1.044 views
-
Am o problema cu un battlepass,de ce nu merge comanda /misiuni cand o scriu,tin sa precizez ca script-ul mi l-a facut chatgpt
By cbnmihaita,
- 2 answers
- 859 views
-
- 3 answers
- 1.380 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.

Question
TheGodfather
Salut, am aceasta comanda /servername dar nu trimite mesajul acela tuturor playerilor, numele la server se schimba corect.
if(strcmp(cmdtext, "/servername", true) == 0)
return SCM(playerid, COLOR_WHITE, AdminOnly);
{
if(PlayerInfo[playerid][pAdmin] <
new newstring[512], idx, tmp[512];
tmp = strtok(cmdtext, idx);
if(strlen(cmdtext[12]) < 1) return SCM(playerid, COLOR_GREY,"Syntax: /servername <nume server>");
format(tmp, sizeof(tmp), "hostname %s", cmdtext[12]);
SendRconCommand(tmp);
format(newstring, sizeof(newstring), "[SERVER] {FFFFFF}Fondator {DA0000}%s {FFFFFF}a schimbat numele server-ului in {FFFFFF}'%s'.", GetName(playerid), cmdtext[12]);
SCMTA(COLOR_LIGHTBLUE, newstring);
return 1;
}
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now