07.08.2014, 17:36
you have been killed by spartaaa (IT'S ON MY SCREEN)
when i killed u its say you have been
__________________________________________________ ____________
while i'm in DM i wrote /leave but it's still saying /leave
__________________________________________________ __
Why chat text color is green and line is too small? see pic
when i killed u its say you have been
Код:
//==============================================================================
//OnPlayerDeath
//==============================================================================
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid == playerid) return 1; // They either fell, or took self-inflicted damage somehow.
new string[75];
format(string, sizeof(string), "~g~You have killed %s.", GetName(playerid));
GameTextForPlayer(playerid, string, 2000, 3);
format(string, sizeof(string), "~g~You have been killed by %s.", GetName(killerid));
GameTextForPlayer(killerid, string, 2000, 3);
//--------------------------------------------------------------------------
//Settings & Others
//--------------------------------------------------------------------------
SetPlayerVirtualWorld(playerid, 0);
SetPlayerWantedLevel(playerid, 0);
SendDeathMessage(killerid, playerid, reason);
if(killerid != INVALID_PLAYER_ID)
{
SetPlayerScore(killerid, GetPlayerScore(killerid) +1);
}
GivePlayerMoney(killerid, 100);
GivePlayerMoney(playerid, 0);
//--------------------------------------------------------------------------
//Textdraw's Hide/Show
//--------------------------------------------------------------------------
TextDrawShowForPlayer(playerid, Textdraw27);
//TextDrawHideForPlayer(playerid, Textdraw0);
//TextDrawHideForPlayer(playerid, Textdraw4);
//TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid, Textdraw8);
TextDrawHideForPlayer(playerid, Textdraw81);
TextDrawHideForPlayer(playerid, Textdraw82);
TextDrawHideForPlayer(playerid, Textdraw83);
TextDrawHideForPlayer(playerid, Textdraw84);
TextDrawHideForPlayer(playerid, TeleTD1);
TextDrawHideForPlayer(playerid, TeleTD2);
TextDrawHideForPlayer(playerid, TeleTD3);
while i'm in DM i wrote /leave but it's still saying /leave
Код:
CMD:leave(playerid, params [])
{
new rand = random(sizeof(Leavespawnpoints));
SetPlayerPos(playerid, Leavespawnpoints[rand][0], Leavespawnpoints[rand][1], Leavespawnpoints[rand][2]);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid, 100);
return 1;
}
Why chat text color is green and line is too small? see pic

