Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #pragma tabsize 0
- // Commands
- CMD:myscore( playerid, params[ ] )
- {
- new string[128];
- format(string,sizeof(string),"Your scoare is %d!",GetPlayerScore(playerid));
- SendClientMessage(playerid,0xE60000AA,string);
- }
- CMD:mymoney( playerid , params [ ] )
- {
- new string [128];
- format(string,sizeof(string),"Your cash is %d",GetPlayerMoney(playerid));
- SendClientMessage(playerid,0xE60000AA,string);
- }
- CMD:location( playerid, params [ ] )
- {
- new string [128],Float:x,Float:y,Float:z;
- format(string,sizeof(string),"You are in this zone %d",GetPlayerPos(playerid,Float:x,Float:y,Float:z));
- SendClientMessage(playerid,0xE60000AA,string);
- }
- CMD:mystatus( playerid , params [ ] )
- {
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Status","Score\nMoney\nLocation","Select","Cancel");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid ==1)
- {
- if(response)
- {
- if(listitem =0)
- {
- new string[128];
- format(string,sizeof(string),"Your scoare is %d!",GetPlayerScore(playerid));
- SendClientMessage(playerid,0xE60000AA,string);
- }
- if(listitem =1)
- {
- new string [128];
- format(string,sizeof(string),"Your cash is %d",GetPlayerMoney(playerid));
- SendClientMessage(playerid,0xE60000AA,string);
- }
- if(listitem =2)
- {
- new string [128],Float:x,Float:y,Float:z;
- format(string,sizeof(string),"You are in this zone %d",GetPlayerPos(playerid,Float:x,Float:y,Float:z));
- SendClientMessage(playerid,0xE60000AA,string);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement