Mach Das
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid,0);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof name);
SendClientMessage(playerid,COLOR_RED,"Du hast Selbstmord begangen.");
SendClientMessageToAll(0xFF0000FF,"%s hat einen Selbstmord begangen.",name);
return 1;
}
zu das
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid,0);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof name);
SendClientMessage(playerid,COLOR_RED,"Du hast Selbstmord begangen.");
format(string,sizeof(string)," %s hat einen Selbstmord begangen",name);
SendClientMessageToAll(0xFF0000FF,name);
return 1;
}
SendClientMessageToall immer mit einem String
MFG Rapture
//EDIT ElDIablo war schneller