- 0
Comanda /servername
-
Similar Content
-
- 2 answers
- 632 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
- 374 views
-
- 3 replies
- 539 views
-
Comanda /spec
By VAurel,
- 4 answers
- 719 views
-
- 3 replies
- 626 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.