24.11.2014, 17:26
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;
}