Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new buyp;
- public OnFilterScriptInit()
- {
- print(" \4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4");
- print(" \4 Torba FS \4");
- print(" \4 by \4");
- print(" \4 System32 \4");
- print(" \4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\4\n");
- buyp = CreatePickup(1239, 2, -27.4744,-89.7580,1003.5469, -1);
- return 1;
- }
- public OnFilterScriptExit()
- {
- DestroyPickup(buyp);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/rmbag", cmdtext, true, 5) == 0)
- {
- RemovePlayerAttachedObject(playerid, 0);
- return 1;
- }
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == buyp)
- {
- ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_LIST, "Torba", "Torba", "Kupi", "Izadi");
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if (dialogid == 9999)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerAttachedObject(playerid, 0, 1550, 1, 0.168857, -0.223739, 0.016255, 116.071144, 104.168029, 42.844120, 1.000000, 1.000000, 1.000000 );
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement