Advertisement
Guest User

Untitled

a guest
Aug 7th, 2011
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include <zcmd>
  7. #pragma tabsize 0
  8. // Commands
  9. CMD:myscore( playerid, params[ ] )
  10. {
  11. new string[128];
  12. format(string,sizeof(string),"Your scoare is %d!",GetPlayerScore(playerid));
  13. SendClientMessage(playerid,0xE60000AA,string);
  14. }
  15. CMD:mymoney( playerid , params [ ] )
  16. {
  17. new string [128];
  18. format(string,sizeof(string),"Your cash is %d",GetPlayerMoney(playerid));
  19. SendClientMessage(playerid,0xE60000AA,string);
  20. }
  21. CMD:location( playerid, params [ ] )
  22. {
  23. new string [128],Float:x,Float:y,Float:z;
  24. format(string,sizeof(string),"You are in this zone %d",GetPlayerPos(playerid,Float:x,Float:y,Float:z));
  25. SendClientMessage(playerid,0xE60000AA,string);
  26. }
  27. CMD:mystatus( playerid , params [ ] )
  28. {
  29. ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Status","Score\nMoney\nLocation","Select","Cancel");
  30. return 1;
  31. }
  32. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  33. {
  34. if(dialogid ==1)
  35. {
  36. if(response)
  37. {
  38. if(listitem =0)
  39. {
  40. new string[128];
  41. format(string,sizeof(string),"Your scoare is %d!",GetPlayerScore(playerid));
  42. SendClientMessage(playerid,0xE60000AA,string);
  43. }
  44. if(listitem =1)
  45. {
  46. new string [128];
  47. format(string,sizeof(string),"Your cash is %d",GetPlayerMoney(playerid));
  48. SendClientMessage(playerid,0xE60000AA,string);
  49. }
  50. if(listitem =2)
  51. {
  52. new string [128],Float:x,Float:y,Float:z;
  53. format(string,sizeof(string),"You are in this zone %d",GetPlayerPos(playerid,Float:x,Float:y,Float:z));
  54. SendClientMessage(playerid,0xE60000AA,string);
  55. }
  56. }
  57. }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement