public OnPlayerDeath(playerid, killerid, reason)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
PlayerInfo[playerid][pLoadPosX] = x;
PlayerInfo[playerid][pLoadPosY] = y;
PlayerInfo[playerid][pLoadPosZ] = z;
PlayerInfo[playerid][pLoadPosInt] = GetPlayerInterior(playerid);
PlayerInfo[playerid][pLoadPosW] = GetPlayerVirtualWorld(playerid);
PlayerInfo[playerid][pHospital] = 1; // <-------------
SafeResetPlayerWeapons(playerid);
ResetPlayerWantedLevelEx(playerid);
WantedPoints[playerid] = 0;
InShamal[playerid] = 0;
InAndrom[playerid] = 0;
CopOnDuty[playerid] = 0;
if(AdminDuty[playerid] == 1)
{
PlayerInfo[playerid][pHospital] = 0;
}
if(Planted[playerid] == 1)
{
DestroyObject(C4[playerid]);
Bomb[playerid] = 0;
Planted[playerid] = 0;
}
return 1;
}
if(PlayerInfo[playerid][pHospital] > 1)
{
SetPlayerPos(playerid,PlayerInfo[playerid][pLoadPosX],PlayerInfo[playerid][pLoadPosY],PlayerInfo[playerid][pLoadPosZ]);
SetPlayerInterior(playerid,PlayerInfo[playerid][pLoadPosInt]);
SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][pLoadPosW]);
return 1;
}
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
Coloque isso no topo de sua OnGameModeInit
pawn Код:
|
AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);