SA-MP Forums Archive
Need A Command Help - 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)
+--- Thread: Need A Command Help (/showthread.php?tid=633744)



Need A Command Help - Lamy - 06.05.2017

How To Make A Command Like That
Код:
/dm
With That :
Код:
/dm 1 //To DM 1
/dm 2 To DM 2
Код:
Usage /dm 1 , 2
Please Help Me


Re: Need A Command Help - adri[4]Life - 06.05.2017

Use My Dm System :
https://sampforum.blast.hk/showthread.php?tid=627476


Re: Need A Command Help - vinnythebest - 06.05.2017

Man is so simple.

Код:
CMD:dm(playerid, params[])
{
new id;
if(sscanf(params, "d", id)) return SendClientMessage(playerid, COLOR_WHITE, "/dm [1-2]");
if(id == 1)
{
SetPlayerPos(playerid, X, Y, Z);
}
else if(id == 2)
{
SetPlayerPos(playerid, X, Y, Z);
}
return 1;
}
How you can't make this command? Is so simple lol


Re: Need A Command Help - Lamy - 06.05.2017

Quote:
Originally Posted by vinnythebest
Посмотреть сообщение
Man is so simple.

Код:
CMD:dm(playerid, params[])
{
new id;
if(sscanf(params, "d", id)) return SendClientMessage(playerid, COLOR_WHITE, "/dm [1-2]");
if(id == 1)
{
SetPlayerPos(playerid, X, Y, Z);
}
else if(id == 2)
{
SetPlayerPos(playerid, X, Y, Z);
}
return 1;
}
How you can't make this command? Is so simple lol
This is bad idention. and i have 3 years not creating scripts. so i forget it


Re: Need A Command Help - vinnythebest - 06.05.2017

Quote:
Originally Posted by Lamy
Посмотреть сообщение
This is bad idention. and i have 3 years not creating scripts. so i forget it
What!? ahahah


Re: Need A Command Help - Lamy - 06.05.2017

Код:
C:\Users\Houssem\Desktop\SAMP Server\gamemodes\mtdm.pwn(359) : warning 211: possibly unintended assignment
C:\Users\Houssem\Desktop\SAMP Server\gamemodes\mtdm.pwn(361) : warning 202: number of arguments does not match definition
C:\Users\Houssem\Desktop\SAMP Server\gamemodes\mtdm.pwn(365) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.



Re: Need A Command Help - Winners2005 - 06.05.2017

Houssem Go PM i will to help you
My Fb: www.********.com/Ayoub.Eddakkaoui


Re: Need A Command Help - vinnythebest - 06.05.2017

Where you add my command mate?
I tested him and work fine.

Do you have zcmd? lol


Re: Need A Command Help - Lamy - 06.05.2017

Quote:
Originally Posted by vinnythebest
Посмотреть сообщение
Where you add my command mate?
I tested him and work fine.

Do you have zcmd? lol
I Have it and placed it under //-------------COMMANDS--------------------


Re: Need A Command Help - vinnythebest - 07.05.2017

Quote:
Originally Posted by Lamy
Посмотреть сообщение
I Have it and placed it under //-------------COMMANDS--------------------
What a fuck man? xD
You never used the zcmd?

And this "//-------------COMMANDS--------------------" where is? You need to place the CMD: out of the publics.