What is wrong with this cmd - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What is wrong with this cmd (
/showthread.php?tid=181871)
What is wrong with this cmd -
NoobScripter1 - 07.10.2010
pawn Код:
cmd(adminhelp, playerid, params[])
{
if(GetPVarInt(playerid, "Admin") < 1)return SendMessage(playerid, "You can't use this command!");
SendClientMessage(playerid, green,"=========================== ADMIN COMMANDS ===========================");
SendClientMessage(playerid, red,"/adel /apark /freeplayer /adminkill /getplayerhere /tptoplayer /healplayer /resetplayerweapons /kickplayer");
SendClientMessage(playerid, red,"/banplayer /weather /makehouse /makebuilding /buildingint /movebuilding /movehouse /houseint /test /coolmode /update");
SendClientMessage(playerid, red,"/getcar /gotoc /areg /entercar /entercar1 /rv(resetcars) /addland /docar(abletoenterallcars) /makeadmin ");
SendClientMessage(playerid, red,"/addname /disableooc ");
return 1;
}
The other commands are working but this isnt its a bug or what i did wrong? Thanks for help
Re: What is wrong with this cmd -
Andy_McKinley - 07.10.2010
What is the bug..?
Re: What is wrong with this cmd -
NoobScripter1 - 07.10.2010
This is saying unktown command
Re: What is wrong with this cmd -
The_Moddler - 07.10.2010
pawn Код:
cmd(adminhelp, playerid, params[])
{
if(GetPVarInt(playerid, "Admin") < 1)return SendMessage(playerid, "You can't use this command!");
{
SendClientMessage(playerid, green,"=========================== ADMIN COMMANDS ===========================");
SendClientMessage(playerid, red,"/adel /apark /freeplayer /adminkill /getplayerhere /tptoplayer /healplayer /resetplayerweapons /kickplayer");
SendClientMessage(playerid, red,"/banplayer /weather /makehouse /makebuilding /buildingint /movebuilding /movehouse /houseint /test /coolmode /update");
SendClientMessage(playerid, red,"/getcar /gotoc /areg /entercar /entercar1 /rv(resetcars) /addland /docar(abletoenterallcars) /makeadmin ");
SendClientMessage(playerid, red,"/addname /disableooc ");
}
return 1;
}
Re: What is wrong with this cmd -
NoobScripter1 - 07.10.2010
so bad lol thank you
Re: What is wrong with this cmd -
NoobScripter1 - 07.10.2010
i tested it again and is not working too someone can help?
Re: What is wrong with this cmd -
NoobScripter1 - 07.10.2010
anyone know why this isnt working
Re: What is wrong with this cmd -
The_Moddler - 07.10.2010
Look at your pVar..
Re: What is wrong with this cmd -
Fj0rtizFredde - 07.10.2010
Try to add an else statement? Like:
pawn Код:
if(GetPVarInt(playerid, "Admin") < 1)return SendMessage(playerid, "You can't use this command!");
else
{
//Code Here
}
I had to do this sometimes in my script
Re: What is wrong with this cmd -
NoobScripter1 - 07.10.2010
hm ok let me test this out