Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //============================= Finde die Statue ========================//
- //============================= Find the Statue =========================//
- //=================================by WarF ==============================//
- //=======================================================================//
- //=======================================================================//
- //=======================================================================//
- //================ Sonstiges ==================
- #define FILTERSCRIPT/
- #include <a_samp>
- #if defined FILTERSCRIPT
- //================ Farben =====================
- #define COLOR_ROT 0xAA3333AA
- #define COLOR_BLAU 0x3A47DEFF
- //================= News ======================
- new StatuePickup;
- //============ OnPlayerCommandText ============
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/statuelegen", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Finde die Statue", "Möchtest du wirklich eine Statue\nplatzieren?", "Aber Sicher", "Nein Doch nicht");
- return 1;
- }
- return 0;
- }
- //============ OnDialogResponse =============
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)
- {
- new Float:x, Float:y, Float:z;
- if(response)
- {
- GetPlayerPos(playerid, x, y, z);
- StatuePickup = CreatePickup(1276, 23, x+2, y, z);
- SendClientMessage(playerid, COLOR_BLAU, "Die Statue wurde platziert!!");
- }
- }
- return 1;
- }
- //============ OnPlayerPickup =============
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == StatuePickup)
- {
- DestroyPickup(StatuePickup);
- new a1[128];
- GetPlayerName(playerid, a1, sizeof(a1));
- format(a1, sizeof(a1), "~g~ %s ~g~hat die ~r~Statue ~g~GEFUNDEN", a1);
- GameTextForAll(a1,2000,1);
- }
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment