Question.
#1

How can I make the computer reconize that after the /suspect command the player id?

I mean, "SEE" the player id after the command.

Sorry for my bad english . Please if you have the answer, help me .
Reply
#2

You need to use either strtok or sscanf, both are listed on the wiki.
Reply
#3

Okay, thanks for the help, but, if I want to set the player position of the select player.

I mean: /suspect 0 <--- put the ID 0 at some place.

I can't use SetPlayerPos(PLAYERID, ..., ..., ...)

What do I use in the place of PLayerid?
Reply
#4

The only way to you guys answer me is double-posting.
Reply
#5

Quote:
Originally Posted by Hot
Okay, thanks for the help, but, if I want to set the player position of the select player.

I mean: /suspect 0 <--- put the ID 0 at some place.

I can't use SetPlayerPos(PLAYERID, ..., ..., ...)

What do I use in the place of PLayerid?
ekhm why u cant use SetPlayerPos?
Код:
SetPlayerPos(giveplayerid, X,Y,Z);
Reply
#6

Код:
 tmp = strtok(cmdtext, idx);
new otherplayer = strval(tmp);
using these two lines, the ID will be stored into otherplayer.
So,

Код:
SetWantedLervel(otherplayer,5);
something like that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)