11.08.2011, 14:33
Quote:
I suggest using zCMD, easier.
pawn Код:
|
The ZCMD-based YCMD wouldn't make much more of a difference.
pawn Код:
YCMD:stunt 1(playerid, params[], help)
{
#pragma unused params
if(help)
{
SendClientMessage(playerid, -1, "Help text goes here for /help stunt 1");
}
SetPlayerPos(playerid,X,Y,Z);
return 1;
}
But I'm not looking for simply naming commands 'stunt 1' 'stunt 2'.
I want to consider the number as a parameter, include everything in one command. Basically something like if parameter = 1 do this, if parameter = 2 do that, and so on.
I'm also using the SSCANF2 plugin, so if using SSCANF helps to speed up things, use it.
...I'm not a very good scripter, and I have no idea either, just like my friend. This has sparked my curiosity and I am awaiting for a new, more helpful reply.
-TheBetaFox