[AJUDA] Hospital
#6

PHP код:
forward SairHosp(playerid);

public 
OnPlayerConnect(playerid)
{
    
SetPVarInt(playerid"Hospital"1);
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    if(
GetPVarInt(playerid"Hospital") == 1)
    {
        
SetPlayerPos(playeridXYZ);
        
SetTimerEx("SairHosp"60000false"i"playerid);
        return 
1;
    }
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    
SetPVarInt(playerid"Hospital"1);
    return 
1;
}
public 
SairHosp(playerid)
{
    
GivePlayerMoney(playerid, -500);
    
SendClientMessage(playerid, -1"Vocк curado pelos mйdicos e isto te custou 500 $.");
    
SetPlayerPos(playeridXYZ);
    
SetPVarInt(playerid"Hospital"0);
    return 
1;

Reply


Messages In This Thread
[AJUDA] Hospital - by Joao_VS - 15.06.2011, 18:37
Re: [AJUDA] Hospital - by The Knight - 15.06.2011, 18:43
Re: [AJUDA] Hospital - by Shadoww5 - 15.06.2011, 18:44
Re: [AJUDA] Hospital - by MaNo_NoIa - 15.06.2011, 19:25
Re: [AJUDA] Hospital - by Joao_VS - 15.06.2011, 19:29
Re: [AJUDA] Hospital - by Shadoww5 - 15.06.2011, 20:20
Re: [AJUDA] Hospital - by Joao_VS - 15.06.2011, 20:37
Re: [AJUDA] Hospital - by Joao_VS - 15.06.2011, 21:26
Re: [AJUDA] Hospital - by Shadoww5 - 15.06.2011, 21:34
Re: [AJUDA] Hospital - by The Knight - 16.06.2011, 18:24

Forum Jump:


Users browsing this thread: 1 Guest(s)