18.03.2013, 06:50
(
Последний раз редактировалось faff; 18.03.2013 в 08:12.
)
This is the command.
But when i try to do this command ingame, it says, Server: Unkown Command.
Can somebody help me, please?
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/elevator", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 2, 194.1673, 401.2836, 2.4079) && PlayerInfo[playerid][pTeam] == 1) //Terrorist, down level dialog. { // look ShowPlayerDialog(playerid, DIALOG_ELET1, DIALOG_STYLE_LIST, "Elevator","Second Level (shop)\nThird Level","Use Elevator","Elevator"); //sWierd cuz there is nossing missed, i know right, roy couldnt help me to.. } else if(IsPlayerInRangeOfPoint(playerid, 2, 194.1673, 401.2836, 12.7379) && PlayerInfo[playerid][pTeam] == 1) //Terrorist, second level dialog. { ShowPlayerDialog(playerid, DIALOG_ELET2, DIALOG_STYLE_LIST, "Elevator - Select Ground Level","Ground Level\n Third Level (sniper position)","Use Elevator","Elevator"); } else if(IsPlayerInRangeOfPoint(playerid, 2, 194.1673, 401.2836, 23.2279) && PlayerInfo[playerid][pTeam] == 1) //Terrorist, third level dialog. { ShowPlayerDialog(playerid, DIALOG_ELET3, DIALOG_STYLE_LIST, "Elevator - Select Ground Level","Ground Level\n Second Level (shop)","Use Elevator","Leave Elevator"); } else if(IsPlayerInRangeOfPoint(playerid, 2, 194.1673, 401.2836, 2.4079) && PlayerInfo[playerid][pTeam] == 2) //CT, down level dialog. { ShowPlayerDialog(playerid, DIALOG_ELECT1, DIALOG_STYLE_LIST, "Elevator - Select Ground Level","Second Level (shop)\n Third Level (sniper position)","Use Elevator","Elevator"); } else if(IsPlayerInRangeOfPoint(playerid, 2, 194.1673, 401.2836, 12.4079) && PlayerInfo[playerid][pTeam] == 2) //CT, second level dialog. { ShowPlayerDialog(playerid, DIALOG_ELECT2, DIALOG_STYLE_LIST, "Elevator - Select Ground Level","Ground Level\n Third Level (sniper position)","Use Elevator","Elevator"); } else if(IsPlayerInRangeOfPoint(playerid, 2, 194.1673, 401.2836, 23.4079) && PlayerInfo[playerid][pTeam] == 2) //CT, third level dialog. { ShowPlayerDialog(playerid, DIALOG_ELECT3, DIALOG_STYLE_LIST, "Elevator - Select Ground Level","Ground Level\n Second Level (shop)","Use Elevator","Leave Elevator"); } else { SendClientMessage(playerid, COLOR_RED, "You cant use your victims elevator, Or maybe you aren't near an elevator?"); } return 1; } return 0; }
Can somebody help me, please?