09.09.2011, 17:16
first:
second:
pawn Код:
public OnPlayerConnect(playerid)
{
new string[128],Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
format(string,sizeof(string),"Welcome login to continue %s",Name);
SendClientMessage(playerid,COLOR_GREY,string);
SendClientMessage(playerid,COLOR_YELLOW,"Country Side TDM v1.1a");
return 1;
}
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
if(IsPlayerConnected(killerid)) {
new killcash = random(1500);
new string[128],KillerName[MAX_PLAYER_NAME];
GetPlayerName(killerid,KillerName,sizeof(KillerName));
GivePlayerMoney(killerid, killcash);
GivePlayerMoney(playerid, -killcash);
format(string, sizeof(string), "You just killed %s and looted $%d from the them.", KillerName, killcash);
}
return 1;
}