Spawn at hospital on death
#5

that didnt work here is what i looks like after i added SetSpawnInfo

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(LSWDM[playerid] == 1)// LSW DM
    {
        GivePlayerMoney(killerid, 300);
        SendClientMessage(killerid, -1, ""C_W"You recieved $300 for killing in a DM");
        pInfo[killerid][DMkills] ++;
        pInfo[killerid][Scores]++;
        pInfo[killerid][Kills]++;
    }
    if(LSCDM[playerid] == 1)// LSC DM
    {
        GivePlayerMoney(killerid, 300);
        SendClientMessage(killerid, -1, ""C_W"You recieved $300 for killing in a DM");
        pInfo[killerid][DMkills] ++;
        pInfo[killerid][Scores]++;
        pInfo[killerid][Kills]++;
    }
    if(AREA69DM[playerid] == 1)// LSC DM
    {
        GivePlayerMoney(killerid, 300);
        SendClientMessage(killerid, -1, ""C_W"You recieved $300 for killing in a DM");
        pInfo[killerid][DMkills] ++;
        pInfo[killerid][Scores]++;
        pInfo[killerid][Kills]++;
    }
    if(Wasted == 1) // Hospital spawn
    {
        SetSpawnInfo(playerid, 0, pInfo[playerid][Skin], 2038.4070,-1411.5172,17.1641, 129.3782, pInfo[playerid][Wep0], pInfo[playerid][Ammo0], pInfo[playerid][Wep1], pInfo[playerid][Ammo1], pInfo[playerid][Wep2], pInfo[playerid][Ammo2]);
        Wasted = 0;
    }
    pInfo[killerid][Scores]++;
    pInfo[killerid][Kills]++;
    pInfo[playerid][Deaths]++;
    Wasted = 1;

    return 1;
}
Reply


Messages In This Thread
Spawn at hospital on death - by Jakwob - 24.11.2014, 14:23
Re: Spawn at hospital on death - by CalvinC - 24.11.2014, 15:23
Re: Spawn at hospital on death - by Jakwob - 24.11.2014, 15:53
Re: Spawn at hospital on death - by Shoulen - 24.11.2014, 17:14
Re: Spawn at hospital on death - by Jakwob - 24.11.2014, 17:26

Forum Jump:


Users browsing this thread: 1 Guest(s)