Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
- #define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
- #define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
- public OnPlayerCommandText(playerid,cmdtext[])
- {
- new cmd[256];
- if(strcmp(cmd, "/acessorios", true) == 0)
- {
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Escolha um acessório","Remover Acessórios\nTelevisão\nHipopótamo\nCrânio\nSaco\nMi na\nVaca\nDragão\nAlargamento\nFumaça\nCone\nÓculo s\nbaseball\nBarril\nBomba","OK","Fechar");
- return 1;
- }
- if(strcmp(cmd, "/creditos", true) == 0)
- {
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Créditos","Créditos By:\nMatheus Vieira pelo sistema de Acessorios","OK","Fechar");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)
- {
- if(response)
- {
- if(listitem == 0)
- {
- StopPlayerHoldingObject(playerid);
- }
- if(listitem == 1)
- {
- new tv = 1518;
- SetPlayerHoldingObject(playerid, tv, 2, 0000.23, 0000.0, 0000.0, 0000.0, 0090.0, 0180.0);
- }
- if(listitem == 2)
- {
- new hippo = 1371;
- SetPlayerHoldingObject(playerid, hippo, 1, 0000.23, 0000.0, 0000.0, 0000.0, 0090.0, 0180.0);
- }
- if(listitem == 3)
- {
- new skull = 3524;
- SetPlayerHoldingObject(playerid, skull, 1, -0001.7, 0000.0, 0000.0, 0000.0, 0090.0, 0180.0);
- }
- if(listitem == 4)
- {
- new punchbag = 1985;
- SetPlayerHoldingObject(playerid, punchbag, 1, 0001.00, 0000.0, 0000.0, 0000.0, 0090.0, 0180.0);
- }
- if(listitem == 5)
- {
- new mine = 2918;
- SetPlayerHoldingObject(playerid, mine, 2, 0001.40, 0000.0, 0000.0, 0000.0, 0090.0, 0180.0);
- }
- if(listitem == 6)
- {
- new cow = 16442;
- SetPlayerHoldingObject(playerid, cow, 1, 0000.42, 0000.0, 0000.0, -0090.0, 0090.0, 0180.0);
- }
- if(listitem == 7)
- {
- new dragon = 3528;
- SetPlayerHoldingObject(playerid, dragon, 2, 0003.50, 0000.0, -0000.4, -0090.0, 0090.0, 0180.0);
- }
- if(listitem == 8)
- {
- new flare = 354;
- SetPlayerHoldingObject(playerid, flare, 1, 0000.15, 0000.0, 0000.0, 0000.0, 0000.0, 0180.0);
- }
- if(listitem == 9)
- {
- new smoke = 2780;
- SetPlayerHoldingObject(playerid, smoke, 2, 0000.00, 0000.0, 0000.0, 0000.0, 0090.0, 0180.0);
- }
- if(listitem == 10)
- {
- new cone = 1238;
- SetPlayerHoldingObject(playerid, cone, 2, 0000.48, 0000.0, 0000.0, 0000.0, 0090.0, 0180.0);
- }
- if(listitem == 11)
- {
- new goggles = 3070;
- SetPlayerHoldingObject(playerid, goggles, 2, 0000.00, 0000.07, 0000.0, 0180.0, 0090.0, 0180.0);
- }
- if(listitem == 12)
- {
- new bbat = 2045;
- SetPlayerHoldingObject(playerid, bbat, 5, 0000.10, -0000.03, -0000.30, 0076.0, 0000.0, 0180.0);
- }
- if(listitem == 13)
- {
- new barrel = 1225;
- SetPlayerHoldingObject(playerid, barrel, 1, 0000.00, -0000.45, 0000.0, 0000.0, 0090.0, 0180.0);
- }
- if(listitem == 14)
- {
- new jihad = 1654;
- SetPlayerHoldingObject(playerid, jihad, 1, 0000.00, 0000.20, 0000.0, 0000.0, 0090.0, 0180.0);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement