Posts: 80
Threads: 28
Joined: Mar 2015
Reputation:
0
help me with this. if i typed /kill i want the message appear to all player's left screen Example: Player 1 suicide ! so..what we need to put?
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/kill", cmdtext, true))
{
SetPlayerHealth(playerid, 0);
return 1;
}
return 0;
}
Posts: 80
Threads: 28
Joined: Mar 2015
Reputation:
0
I know that. the problem now is how can i make the playername appear there..example is my name is Chausar and when i type /kill the message appear Chausar (0) Suicide!
Posts: 80
Threads: 28
Joined: Mar 2015
Reputation:
0
JaydenJason,
i got two error:
D:\Barang2\samp_server\gamemodes\TESTING.pwn(95) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
I'm noob at scripting...
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
Place a semicolon at the GetPlayerName, since it's a function.
And make sure you used an integer instead of a string as i said above for the playerid.