Little Help will be nice :D
#1

Hai out there, i am going to release a gamemode but, i have added the cmds Ofcurse but

i dont know how i shall add the cmds


There are the cmds i want to add in a dialog, but i want to add a nextpage and a Go back page ex, if you were on page 5 then you will go to page 4 etc, and i need help with that


Here is the CMDS...

Quote:

/register /login /i /information /explode /respawn /vehicle /mute /unmute /kick\n /jail /bail /ar /arrest /newlife /announce /slap /giveweapon /repairvehicle /bring\n /goto /pm
/privatemessage /reply /r /nopm /campos /inv /inventory /bankrob \n /gc /givecash /agivecash /casinorob /loc /location /admins /bk /backup /admins\n /pu /report /rp /br /bribe
/accept /refuse /rob /rape /ban\n /godmode /spec /sethealth /setvehiclehealth /setlevel /admcmds
/hit /cancelhit /wave /deposit /withdraw /antihack /givedonator /ticket /tk /vehcolor /vehplate /fart /cage /admininsult /removefv /placeiv /destroyvehicle /weapons /refill /prices /drugs /w /whisper
/cw /carwhisper /me /ej /ejectme /ejm /eject /complain /gd /givedrugs /warn /fine /escape /radio /rank /cell /transfer /freeze /unfreeze /medic /plant /fertilize /harvest /holdup /takedrugs /td
/mission /north /east /south /west /mw /mostwanted /createhouse /ahousecar /ahouseexit /housecar /sethousename /sethousepass /sellhouse /setadmin /mr /donut /payticket /pay /groupcreate /grleave
/groupleave /gm /groupmessage /grinvite /groupinvite /grjoin /groupjoin /grkick /groupkick /grleader /groupleader /answer /taxi /taxifare /hits /crimes /lotto /expose /fish /fishinv /fishinventory
/fsellall /fishrel /fishrelease /bug /tb /throwback /adminvehicle /pinfo /rules /credits /givehousekeys /removehousekeys /housesystem /commandsystem /enter /kidnap /release /ransom /startrace /commands
/gcommands (And There might be a lot of more CMDS, This was only 200 cmds like, Some of them are admin cmds)

Hope you got an nice idea

Regards CrazyChoco/Rayner
Reply
#2

I got the Same problem too, but i dont have soo many commands
Reply
#3

if(dialogid == DIALOGID+1 // Your Dialog Code
{
if(response)
{
if(listitem == 0)// First Dialog Option
{
return 1;
}
if(listitem == 1)// Second Dialog Option
{
return 1;
}
if(listitem == 2)// back
{
ShowPlayerDialog( playerid, DIALOGID+7, DIALOG_STYLE_LIST, "Dialog Name", "You put your options for your back menu here", "Back", "Cancel"); // They clicked back.
}
}
return 1;
}


If you see how I done it here you will make a code to go back and set it to the dialog id you would like to go back to
Reply
#4

Thanks for your help i totally understand what ya typed
Reply
#5

Quote:
Originally Posted by CrazyChoco
Посмотреть сообщение
Thanks for your help i totally understand what ya typed
Lol, I dunno if this is sarcasam or not, appearently it is, so here you go
ShowPlayerDialog - https://sampwiki.blast.hk/wiki/ShowPlayerDialog
OnDialogResponse callback - https://sampwiki.blast.hk/wiki/OnDialogResponse
No one teaches better than wikipedia.

PS: loving your clucker avatar
Good luck
Reply
#6

Thanks and thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)