14.01.2010, 23:42
Okay, I'll make this as short as possible
This works fine, although it Displays You killed "id" and gained 3,000 instead of You killed "Players name"
How would I fix this? I didn't know playerid literally displayed there ID.. lol
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new string[256];
if (IsPlayerConnected(playerid)) {
PlayerInfo[playerid][Deaths]++;
format(string, sizeof(string),"You were killed by: %i and lost $1,000.",killerid);
SendClientMessage(playerid, COLOR,string);//kills deaths etc.
}
if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID)
{
PlayerInfo[killerid][Kills]++;
format(string, sizeof(string),"You killed: %i and gained $3,000.",playerid);
SendClientMessage(killerid, COLOR,string);//kills deaths etc.
}
return 1;
}
How would I fix this? I didn't know playerid literally displayed there ID.. lol

