SA-MP Forums Archive
Please, i need quick Help. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Please, i need quick Help. (/showthread.php?tid=498730)



Please, i need quick Help. - howtodo - 04.03.2014

I need system custom of /accept death and /service medic...

Becuse if someone down my heal, i go to the hospital Without doing /accept death or /service medic.

my gamemode codes of death:

PHP код:
public OnPlayerDeath(playeridkilleridreason
the full code:

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
//   printf("OnPlayerDeath: playerid: %d, killerid: %d, reason: %s", playerid, killerid, reason); //debug
    
if (PlayerInfo[playerid][pHungry] == || PlayerInfo[playerid][pThirsty] == 1)
    {
        
PlayerInfo[playerid][pHungry] = 360;
        
PlayerInfo[playerid][pThirsty] = 300;
    }
    
ClearGuns(playerid);
    
SetPlayerColor(playeridTCOLOR_HOSPITAL);
    
GameTextForPlayer(playerid,"~w~Wasted",4000,2);
    
SetPlayerVirtualWorld(playerid0);
    
PlayerInfo[playerid][pOnDuty] = 0;
    
PlayerInfo[playerid][pBombs] = 0;
    
PlayerInfo[playerid][pScope] = 0;
    
PlayerInfo[playerid][pLocal] = 999;
    
PlayerInfo[playerid][pVirtualWorld] = 0;
    
PlayerInfo[killerid][pKills] += 1;
    
WithGlasses[playerid] = 0;
    
Parrot[playerid] = 0;
    
WithMask[playerid] = 0;
    
WithHat[playerid] = 0;
    
WithBandana[playerid] = 0;
    
WithHelmet[playerid] = 0;
    
wrench[playerid] = 0;
    
hammer[playerid] = 0;
    
crowbar[playerid] = 0;
    
chainsawdildo[playerid] = 0;
    
flashlight[playerid] = 0;
    
screwdriver[playerid] = 0;
    
rake[playerid] = 0;
    
AShield[playerid] = 0;
    
BShield[playerid] = 0;
    
PlayerInfo[playerid][pInHouse] = 999;
    
PlayerInfo[playerid][pInBiz] = 999;
    if(
PlayerInfo[playerid][Lockpicking] > 0)
    {
        
PlayerInfo[playerid][Lockpicking] = 0;
        
PlayerInfo[playerid][CLockpick] = 0;
        
PlayerInfo[playerid][HLockpick] = 999;
    }
    
STDPlayer[playerid] = 0;
    
IsAtEvent[playerid] = 0;
    new 
name[MAX_PLAYER_NAME];
    new 
killa[MAX_PLAYER_NAME];
    new 
string[128];
    new 
caller Mobile[playerid];
    
GetPlayerName(playeridnamesizeof(name));
    
GetPlayerName(killeridkillasizeof(killa));
    if(
LoadingCashType[playerid] != 0)
    { 



Re: Please, i need quick Help. - Dignity - 04.03.2014

https://sampforum.blast.hk/showthread.php?tid=495704


Re: Please, i need quick Help. - howtodo - 05.03.2014

Thank u very much you help me !