20.06.2013, 10:00
Quote:
Use it
pawn Код:
|
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext,"/GS", true, 10) == 0) { SetPlayerPos(playerid,1937.8898,-1769.1318,13.3828);//Gas Station Idlewood return 1; } if (!strcmp(cmdtext,"/LSPD",true)) { SetPlayerPos(playerid,1548.4966,-1674.3378,14.5427); //LSPD return 1; } if (!strcmp(cmdtext,"/LSCH",true)) { SetPlayerPos(playerid,1481.5734,-1750.9623,15.4453); //LSCH return 1; } if (!strcmp(cmdtext,"/buymenu",true, 10)) { ShowPlayerDialog(playerid,1, DIALOG_STYLE_LIST, "What you need?","Chicken (10$)\nPizza (8$)\nBurger (5$)","BUY","Cancel"); //Food list return 1; } if (strcmp(cmdtext, "/help",true, 10) == 0) { SendClientMessage(playerid, -1, ""RED"SERVER:"WHITE"You can "YELLOW"ask "WHITE"Your "RED"Questions "WHITE" On "YELLOW"Help "WHITE"Chat "YELLOW"(Use: /h your question)"); return 1; } if (strcmp(cmdtext, "/Refuel", true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 8.0, 1937.8898, -1769.1318, 13.3828)) { ShowPlayerDialog(playerid,2, DIALOG_STYLE_LIST, "Choose Amount","big tank 100%(20$) \nMedium tank 50%(10$) \nSmall tank 20%(5$)","BUY","Cancel"); } else { SendClientMessage(playerid, -1, "You must stay on "YELLOW"Gas Station "WHITE"to refuel"); } if (strcmp(cmdtext, "/Enter", true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 2.0, 1553.5604, -1675.2515, 16.1953)) { SetPlayerPos(playerid, 246.375991,109.245994,1003.218750);//LSPD enter print("Please Wait,objects have loading "); TogglePlayerControllable(playerid,0); SetTimerEx("Freeze message", 3000, false, "i", playerid); } else { SendClientMessage(playerid,-1,""RED"You are't near any entry point"); } } } return 1; } forward Unfreeze(playerid); public Unfreeze(playerid) { print("Objects loaded"); TogglePlayerControllable(playerid,1); return 1; }