21.06.2010, 13:48
There is the code
When i do /teles it say Unknown Command... Why?
I got no errors/warning when i compile...
Код:
#define FILTERSCRIPT #include <a_samp> #if defined FILTERSCRIPT new Menu: DMZones; public OnFilterScriptInit() { DMZones = CreateMenu("DMZones", 1, 18.0, 102.0, 165.0, 165.0); AddMenuItem(DMZones, 0, "AERA 51"); } public OnPlayerSelectedMenuRow(playerid, row) { new Menu:CurrentMenu = GetPlayerMenu(playerid); if(CurrentMenu == DMZones) { switch(row) { case 0: { SetPlayerPos(playerid,0000.0000,0000.0000,0000.0000); GivePlayerWeapon(playerid, 24, 5000); } } } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/teles", true) == 0) { ShowMenuForPlayer(DMZones, playerid); TogglePlayerControllable(playerid, 0); return 1; } return 0; } #endif
I got no errors/warning when i compile...