Format help.
#2

first:
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;
}
second:
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;
}
Reply


Messages In This Thread
Format help. - by Lilrebel17 - 09.09.2011, 17:12
Re: Format help. - by Kaperstone - 09.09.2011, 17:16
Re: Format help. - by Jafet_Macario - 09.09.2011, 17:19
Re: Format help. - by Lilrebel17 - 09.09.2011, 17:30
Re: Format help. - by Kaperstone - 09.09.2011, 17:43
Re: Format help. - by Jafet_Macario - 09.09.2011, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)