Posts: 918
Threads: 148
Joined: Sep 2010
Reputation:
0
How can I set commands instead of this: A player uses the command and it happends to himself
to this: An admin (or other player) uses a command and can set the command to a player...
?
for example:
/heal
and /setplayerhealth
wel how do I do the second one?
Posts: 246
Threads: 60
Joined: Oct 2010
Reputation:
0
new id;
then swtich playerid to id
Posts: 918
Threads: 148
Joined: Sep 2010
Reputation:
0
Didn't work!
I get erros...
if(strcmp("/throw", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid))
{
SendClientMessage(ID, 0xFF8000FF, "You have been teleported away because you were stalking!");
SetPlayerPos(ID, 419.800018, 2531.705322, 16.157726);
}
return 1;
}
erros: C:\Users\William\Downloads\Ti+Stuntacular\gamemode s\Tropical_Island.pwn(406) : error 017: undefined symbol "ID"
C:\Users\William\Downloads\Ti+Stuntacular\gamemode s\Tropical_Island.pwn(407) : error 017: undefined symbol "ID"
Posts: 918
Threads: 148
Joined: Sep 2010
Reputation:
0
THen how should it be?
I don't understand a shit about that other stuff you just send me...
How can I just do it the simple way?
Posts: 844
Threads: 32
Joined: Apr 2009
Reputation:
0
Knack, come online on MSN real quick? if ur here within 5 minutes i may am able to help you