[AJUDA] Hospital
#3

PHP код:
public OnPlayerConnect(playerid)
{
    
SetPVarInt(playerid, "Hospital", 1);
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    if(
GetPVarInt(playerid, "Hospital") == 1)
    {
        
GivePlayerMoney(playerid, -500);
        
SendClientMessage(playerid, -1, "Vocк curado pelos mйdicos e isto te custou 500 $.");
        
SetPlayerPos(playerid, X, Y, Z);
        
SetPVarInt(playerid, "Hospital", 0);
        return 
1;
    }
    return 
1;
}
public 
OnPlayerDeath(playerid, killerid, reason)
{
    
SetPVarInt(playerid, "Hospital", 1);
    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: