Quote:
Originally Posted by Aveger
pawn Код:
public OnPlayerSpawn(playerid) { if(PlayerInfo[playerid][pHospitalCured] == 0) { SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirtualWorld]); SetPlayerInterior(playerid, PlayerInfo[playerid][pInterior]); SetPlayerPos(playerid, PlayerInfo[playerid][pPositionX], PlayerInfo[playerid][pPositionY], PlayerInfo[playerid][pPositionZ]); SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pFacingAngle]); SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]); SetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]); } else if(PlayerInfo[playerid][pHospitalCured] >= 1) { SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], 1606.77, 1820.03, 10.83); SpawnPlayer(playerid); PlayerInfo[playerid][pHospitalized] = 0; TogglePlayerSpectating(playerid, true); } return 1; }
public OnPlayerDeath(playerid, killerid, reason) { if(PlayerInfo[playerid][pHospitalized] >= 0) { SetTimer("Hospitalized", 5000, false); GameTextForPlayer(playerid, "~r~Being transfered to Las Venturas Hospital..", 9000, 4); RemovePlayerFromVehicle(playerid); } return 1; } forward Hospitalized(playerid); public Hospitalized(playerid) { SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); TogglePlayerControllable(playerid, 9); SetPlayerCameraPos(playerid, 1583.90, 1847.44, 17.89); SetPlayerCameraLookAt(playerid, 1606.14, 1825.32, 10.82); GameTextForPlayer(playerid, "~r~The Doctor is curing you...~n~~b~You will be release soon.", 10000, 4); SetTimer("HospitalRelease", 10000, false); PlayerInfo[playerid][pHospitalized] = 1; SavePlayerProfile(playerid); return 1; }
forward HospitalRelease(playerid); public HospitalRelease(playerid) { PlayerInfo[playerid][pHospitalCured] = 1; PlayerInfo[playerid][pHospitalized] = 0; SetPlayerArmour(playerid, 0); SetPlayerHealth(playerid, 50); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); TogglePlayerControllable(playerid, 1); GameTextForPlayer(playerid, "~r~Released and Healed", 5000, 4); OnPlayerSpawn(playerid); SendClientMessage(playerid, COLOR_WHITE, "{FFDD00}Las Venturas Hospital{FFFFFF}: You have been cured and released."); return 1; }
Here you go sir hope this works not tested...
You Welcome.
Gr. Aveger
|
C:\Users\user\Desktop\LVRP\gamemodes\lvrp.pwn(1060 ) : warning 202: number of arguments does not match definition
C:\Users\user\Desktop\LVRP\gamemodes\lvrp.pwn(1060 ) : warning 202: number of arguments does not match definition
C:\Users\user\Desktop\LVRP\gamemodes\lvrp.pwn(1060 ) : warning 202: number of arguments does not match definition
C:\Users\user\Desktop\LVRP\gamemodes\lvrp.pwn(1060 ) : warning 202: number of arguments does not match definition
C:\Users\user\Desktop\LVRP\gamemodes\lvrp.pwn(1060 ) : warning 202: number of arguments does not match definition
C:\Users\user\Desktop\LVRP\gamemodes\lvrp.pwn(1060 ) : warning 202: number of arguments does not match definition
C:\Users\user\Desktop\LVRP\gamemodes\lvrp.pwn(1060 ) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
7 Warnings.
(in this line)
SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], 1606.77, 1820.03, 10.83);