SA-MP Forums Archive
[Help]/napravistan - 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: [Help]/napravistan (/showthread.php?tid=314852)



[Help]/napravistan - Nedda - 31.01.2012

Hello! I have a problem! Attempting to make a command in the cmd but I do not know!
I want to switch from zcmd command in cmd and this is the command:
Код:
CMD:makestan(playerid,params[])
{
     if(GetPVarInt(playerid, "AdminLvl") >= 1338)
	{
		new opcija,opcija1;
 		if (sscanf(params, "dd", opcija,opcija1)) SCM(playerid, COLOR_WHITE, "Koristenje: /makestan [int] [cijena]");
 		else
 		{
			new Float:PpS[3];
			GetPlayerPos(playerid, PpS[0],PpS[1],PpS[2]);
 		    MakeStanFnc(playerid,opcija,opcija1,PpS[0],PpS[1],PpS[2]);
		}
	}else{SCM(playerid, COLOR_LIGHTRED, "[XDRIVE]: Niste autorizirani!");}
	return 1;
}
I ask someone to do this command in CMD! Thxx!