01.11.2013, 15:36
Hello,I have this problem for a while now,and my friend has it too. (Fresh server)
So,I made some simple commands on gamemode,but when i type it,server says: Unknown command.
This happends to every script.
I tried a to use zcmd,dcmd but same.
here is a sample:
As you can see,there is no problem with the script,still its an unknown command. Anyone got ideas?
So,I made some simple commands on gamemode,but when i type it,server says: Unknown command.
This happends to every script.
I tried a to use zcmd,dcmd but same.
here is a sample:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/toltes", cmdtext, true, 10) == 0)
{
new string[MAX_PLAYER_NAME];
GetPlayerName(playerid,string, sizeof(string));
format(string,128, "%s йletet/armourt tцltцtt!",string);
SendClientMessageToAll(COLOUR_VILAGOSKEK,string);
SendClientMessage(playerid, COLOUR_VILAGOSKEK, "йletet/armourt tцltцtt!");
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
return 1;
}
if (strcmp("/rlogin", cmdtext, true, 10) == 0)
{
new string[MAX_PLAYER_NAME];
GetPlayerName(playerid,string, sizeof(string));
format(string,128, "%s belйpett az RCONba!",string);
SendClientMessageToAll(COLOUR_VILAGOSKEK,string);
SendClientMessage(playerid, COLOUR_VILAGOSKEK, "Belйptйl az RCONba!");
SendRconCommand("rcon login kecskesajt");
return 1;
}
if (strcmp("/w", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,FEGYVER_DIALOG,DIALOG_STYLE_LIST,"Fegyver vбlasztбs","1. csomag\n2. csomag","Kivбlaszt","Mйgsem");
}
return 0;
}