28.10.2010, 01:50
Will any of this command that we shift the dialog .....
...::::Please:::...
Command number 1 - This to be finishing as well as other ...
Command number 2 -
.....:::::If someone has the time and inclination I would be very grateful to him:::::.....
Sorry for my bad English....
...::::Please:::...
Command number 1 - This to be finishing as well as other ...
Код:
if (strcmp("/pij", cmdtext, true, 10) == 0) { if(PlayerToPoint(3.0,playerid,374.7567,-67.7098,1001.5151)) { //GOTOVO SendClientMessage(playerid, COLOR_LIGHTBLUE, "Meni Pica"); SendClientMessage(playerid, COLOR_LIGHTRED, "/Pivo|/Konjak|/Schewps|/CocaCola"); } }
Код:
if(strcmp(cmd,"/jedi",true)==0) { if(IsPlayerConnected(playerid)) { if (PlayerToPoint(3, playerid,376.5103,-68.1829,1001.5151)||PlayerToPoint(3, playerid,373.6855,-119.1991,1001.4922)||PlayerToPoint(3, playerid,369.4097,-6.2889,1001.8516))//mjesto gdje moze jesti { GetPlayerName(playerid, sendername, sizeof(sendername)); new x_nr[128]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "¤¤¤¤¤¤¤¤¤¤¤¤|_Jelovnik Jela_|¤¤¤¤¤¤¤¤¤¤¤¤"); SendClientMessage(playerid, COLOR_WHITE, "Upisi: /jedi [ime jela]"); SendClientMessage(playerid, COLOR_WHITE, "*Jelovnik: Pizza[$39] | Burek [$33] | Hotdog [$19] | Sandwich [$24] | Hamburger [$29]"); return 1; } if(strcmp(x_nr,"pizza",true) == 0) { new Float:HP; GetPlayerHealth(playerid, HP); if(HP<100) { SetPlayerHealth(playerid, HP+35); GivePlayerMoney(playerid, -39); GameTextForPlayer(playerid, "~r~Pojeo si Pizzu", 5000, 1); format(string, sizeof(string), "%s jede pizzu", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SetPlayerHealth(playerid, HP-5); GivePlayerMoney(playerid, -39); format(string, sizeof(string), "%s se prejeo i sad mu nije dobro", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } else if(strcmp(x_nr,"hotdog",true) == 0) { new Float:HP; GetPlayerHealth(playerid, HP); if(HP<100) { SetPlayerHealth(playerid, HP+20); GivePlayerMoney(playerid, -19); GameTextForPlayer(playerid, "~w~Pojeo si Hotdog", 5000, 1); format(string, sizeof(string), "%s jede Hotdog", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SetPlayerHealth(playerid, HP-5); GivePlayerMoney(playerid, -19); format(string, sizeof(string), "%s se prejeo i sad mu nije dobro", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } else if(strcmp(x_nr,"sandwich",true) == 0) { new Float:HP; GetPlayerHealth(playerid, HP); if(HP<100) { SetPlayerHealth(playerid, HP+24); GivePlayerMoney(playerid, -24); GameTextForPlayer(playerid, "~w~Pojeo si sandwich", 5000, 1); format(string, sizeof(string), "%s jede sandwich", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SetPlayerHealth(playerid, HP-5); GivePlayerMoney(playerid, -24); format(string, sizeof(string), "%s se prejeo i sad mu nije dobro", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } else if(strcmp(x_nr,"hamburger",true) == 0) { new Float:HP; GetPlayerHealth(playerid, HP); if(HP<100) { SetPlayerHealth(playerid, HP+35); GivePlayerMoney(playerid, -29); GameTextForPlayer(playerid, "~w~Pojeo si hamburger", 5000, 1); format(string, sizeof(string), "%s jede hamburger", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SetPlayerHealth(playerid, HP-5); GivePlayerMoney(playerid, -29); format(string, sizeof(string), "%s se prejeo i sad mu nije dobro", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } else if(strcmp(x_nr,"burek",true) == 0) { new Float:HP; GetPlayerHealth(playerid, HP); if(HP<100) { SetPlayerHealth(playerid, HP+35); GivePlayerMoney(playerid, -33); GameTextForPlayer(playerid, "~w~Pojeo si burek", 5000, 1); format(string, sizeof(string), "%s jede burek", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SetPlayerHealth(playerid, HP-5); GivePlayerMoney(playerid, -33); format(string, sizeof(string), "%s se prejeo i sad mu nije dobro", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } } } return 1; }
Sorry for my bad English....