07.07.2011, 13:43
Now it's correct:
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/level 1", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,0x33AA33AA,DIALOG_STYLE_LIST,"|||level 1|||","\ngetinfo\nweaps\nvr\nrepair\nltune\n\nlhy\ nlnos\nlp\nasay\nping\nlslowmo\nltc\nmorning\nadmi narea\nreports\nrichlist\nminiguns\nsaveplacae\ngo toplace\nsaveskin\nuseskin\ndontuseskin."," Done","Close");
return 1;
}
if (strcmp("/level 2", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,0x33AA33AA,DIALOG_STYLE_LIST,"|||LEVEL 2|||","\ngiveweapon\nsetcolour\nlockcar\nunlockcar \nburn\nspawn\ndisarm\nlcar\nlbike\nlheli\nlboat\n lplane\nhightlight\nannounce\nannounce2\nscreen\nj etpack\nflip\ngoto\nvgoto\nlgoto\nfu\nwarn\nslap\n jailed\nfrozen\nmute\nunmute\nmuted\nlaston\nlspec \nlspecoff\nlspecvehicle\nclearchat\nlmenu\nltele\ ncm\nltmenu\nwrite."," Done","Cancel");
return 1;
}
if (strcmp("/level 3", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0x33AA33AA,"||| More !!!! |||");
SendClientMessage(playerid, 0x33AA33AA,"setalltime,setallworld,setallscore,set allcash,giveallcash,giveallweapon,lweather,ltime,l weapons,setarmour,setcash,setscore,setskin,setwant ed,setname,setweather,settime,setworld.");
ShowPlayerDialog(playerid, 0x33AA33AA,DIALOG_STYLE_LIST,"|||level 3|||","\nsethealth\nsetinterior\nforce\neject\nban krupt\nsbankrupt\nubound\nlweaps\nlammo\ncountdown \nduel\ncar\ncarhealth\ncarcolour\nsetping\nsetgra vity\ndestroycar\nteleplayer\nvget\ngivecar\ngethe re\nget\nkick\nexplode\njail\nunjail\nfreeze\nunfr eeze\nakill\naka\ndisablechat\nclearallchat\ncaps\ nmove\nmoveplayer\nhealall\narmourall\nsetallskin\ nsetallwanted\nsetallweather."," Done","Close");
return 1;
}
if (strcmp("/level 4", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 0x33AA33AA,DIALOG_STYLE_LIST,"|||level 4|||","\ncrash\nenable\ndisable\ngod\ngodcar\ndie\ nban\nrban\nsettemplevel\nuconfig\nbotcheck\nlocks erver\nunlockserver\nforbidname\nforbidword\ninvis \nuninvis\nkillinvis\nfakedeath\nspawnall\nmuteall \nunmuteall\ngetall\nkillall\nfreezeall\nunfreezea ll\nkickall\nslapalll\nexplodeall\ndisarmall\nejec tall."," Done","Close");
return 1;
}
if (strcmp("/level 5", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 0x33AA33AA,DIALOG_STYLE_LIST,"|||level 5|||","\ngod\nsgod\nsetlevel\npickup\nobject\nfake chat\nspam."," Done","Close");
return 1;
}
if (strcmp("/rcon", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 0x33AA33AA,DIALOG_STYLE_LIST,"|||RCON!|||","\ninfo \naka\npm\nasay\nann\nuconfig\nchat."," Done","Close");
return 1;
}
return 0;
}