31.05.2010, 17:56
Код:
// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/jobs", true) == 0) { ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Teleport Menu", "Policeman \n SWAT \n Taxi \n Whore \n Medic", "Select", "Cancel"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 2) { if(response) { new message[256+1]; if(listitem == 0) { format(message, 256, "Welcome to the [AF]Police department!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); SetPlayerSkin(playerid, 282); SetPlayerPos(playerid, 2238.2217,2449.5750,11.0372); } if(listitem == 1) { format(message, 256, "Welcome to the [AF]S.W.A.T", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); SetPlayerSkin(playerid, 285); SetPlayerPos(playerid, -1447.2, 426.9, 31.0); } if(listitem == 2) { format(message, 256, "Welcome to the Taxi company!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); SetPlayerSkin(playerid, 262); SetPlayerPos(playerid, 2191.6074,1676.6697,12.0886); } if(listitem == 3) { format(message, 256, "You are now a Whore!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); SetPlayerSkin(playerid, 85); SetPlayerPos(playerid, 2421.3354,-1224.8848,25.1766); } if(listitem == 4) { format(message, 256, "Welcome to the medical department!", listitem); SendClientMessage(playerid, 0xFFFFFFFF, message); SetPlayerSkin(playerid, 274); SetPlayerPos(playerid, 1775.7734,2064.7734,10.8203); } }
help please
thanks