Little help
#6

Код:
// @ Top of the script:

new Respawn[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    Respawn[playerid] = 0;
    return 1;
}

public OnPlayerSpawn(playerid)
{
    if(Respawn[playerid] == 1)
    {
        SetPlayerPos(playerid,-1514.7246,2524.8870,55.7863);
        SetPlayerFacingAngle(playerid, 0.5606);
        SetPlayerInterior(playerid, 0); // Interior 0 if it's outside.        
        GivePlayerMoney(playerid,-200);
        SendClientMessage(playerid,COLOR_RED,"You payed 200 $ for your medical bill. You were");
        SendClientMessage(playerid,COLOR_RED,"found nearly dead. You are lucky you're even alive.");
        SendClientMessage(playerid,COLOR_RED,"Thank you, and have a nice day.");
    }    
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    Respawn[playerid] = 1;
    return 1;
}
Reply


Messages In This Thread
Little help - by Anzhelov - 20.02.2011, 00:54
Re: Little help - by Marricio - 20.02.2011, 00:57
Re: Little help - by Anzhelov - 20.02.2011, 01:05
Re: Little help - by AlExAlExAlEx - 20.02.2011, 01:57
Re: Little help - by Stigg - 20.02.2011, 02:00
Re: Little help - by Serbish - 20.02.2011, 02:25

Forum Jump:


Users browsing this thread: 1 Guest(s)