Posts: 336
Threads: 48
Joined: Feb 2009
Reputation:
0
Hey guys, how do i define what the playerid is in
if (strcmp("/rcon commands", cmdtext, true, 10) == 0)
{
this type of Commands??
Posts: 336
Threads: 48
Joined: Feb 2009
Reputation:
0
nvm, friend helped.
New problem,
How, do i make stuff like, when the player does /kick, that it will come with a clientmessage, [USAGE] /kick [playerid]
Posts: 284
Threads: 65
Joined: Jul 2009
Reputation:
0
If you mean, how to create command where you can type playerid etc "/slap [ID]", create new variable that save ID, mostly used by strval(tmp) and than every command is used on it.
Posts: 336
Threads: 48
Joined: Feb 2009
Reputation:
0
No, i mean, that it will, Return the right usage.
Posts: 6,340
Threads: 58
Joined: May 2009
Reputation:
0
Use sscanf for that, you can find many examples on the forum.
Posts: 336
Threads: 48
Joined: Feb 2009
Reputation:
0
it was the first one, thanks.
Posts: 336
Threads: 48
Joined: Feb 2009
Reputation:
0
Another:
SetPlayerPos(playerid,
Im trying to make /goto, but its not really that simple as i tought :P
How do i make it, that he will get Teleported to the guy?
Posts: 284
Threads: 65
Joined: Jul 2009
Reputation:
0
make new float x, y, z and use tmp.