05.07.2012, 20:58
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/enter", cmdtext, true, 6) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 2309.8423, -1644.9840, 14.8270)) { SetPlayerInterior(playerid, 11); SetPlayerPos(playerid, 501.8214, -69.0665, 998.7578); SetPlayerShopName(playerid,"FDBAR"); SendClientMessage(playerid, 0xAFAFAFAA, "Ти влезе в бара"); } return 1; } if (strcmp("/exit", cmdtext, true, 5) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 501.8214, -69.0665, 998.7578)) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 2309.8423, -1644.9840, 14.8270); SendClientMessage(playerid, 0xAFAFAFAA, "Ти излезе от бара"); } return 1; } if(strcmp(cmdtext, "/drinks", true, 7) == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 497.1258, -75.9710, 998.7578)) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Какво желаеш?", "Спрайт ($10)\nБира ($20)\nВино ($30)", "Купи", "Излез"); } return 1; } return 0; }
D:\igri\GTA San Andreas\filterscripts\xc.pwn(113) : warning 217: loose indentation