How to define the playerid -
laser50 - 05.03.2010
Hey guys, how do i define what the playerid is in
if (strcmp("/rcon commands", cmdtext, true, 10) == 0)
{
this type of Commands??
Re: How to define the playerid -
Torran - 05.03.2010
What do you mean?
Re: How to define the playerid -
laser50 - 05.03.2010
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]
Re: How to define the playerid -
Ironboy500 - 05.03.2010
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.
Re: How to define the playerid -
laser50 - 05.03.2010
No, i mean, that it will, Return the right usage.
Re: How to define the playerid -
Correlli - 05.03.2010
Use sscanf for that, you can find many examples on the forum.
Re: How to define the playerid -
bajskorv123 - 05.03.2010
If your using strtok:
pawn Код:
if(!strlen(tmp)) return SendClientMessage(playerid, color, "Error: Blahblah");
If your using dcmd:
pawn Код:
if(!strlen(params)) return SendClientMessage(playerid, color, "Error: Blahblah");
If your using zcmd:
pawn Код:
if(isnull(params)) return SendClientMessage(playerid, color, "Error: Blahblah");
Re: How to define the playerid -
laser50 - 05.03.2010
it was the first one, thanks.
Re: How to define the playerid -
laser50 - 05.03.2010
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?
Re: How to define the playerid -
Ironboy500 - 05.03.2010
make new float x, y, z and use tmp.