פקודות ופונקציות יעילות
#6

Vgod-Vehicle god
נותן לכם אינסוף חיים למכונית.
למעלה:
pawn Code:
new AutoVehFixTimer[MAX_SERVER_PLAYERS];
OnPlayerCommandText:
pawn Code:
if (strcmp("/vgod on", cmdtext, true, 9) == 0)
    {
        new Float:health;
        new veh;
        veh = GetPlayerVehicleID(playerid);
        GetVehicleHealth(veh, health);
        if(health <999) SetVehicleHealth(veh,1000);
        GameTextForPlayer(playerid,"~w~vgod ~g~On!",2000,5);
        AutoVehFixTimer[playerid] = SetTimerEx("autofixtimer", 1, true, "i", playerid);
        return 1;
    }
בסוף:
pawn Code:
forward autofixtimer(playerid);
public autofixtimer(playerid)
{
    new Float:health;
    new veh;
    veh = GetPlayerVehicleID(playerid);
    GetVehicleHealth(veh, health);
    if(health <999) SetVehicleHealth(veh,1000);
    return 1;
}
רק שאני לא יודע איך לעשות /vgod off אז תנסו לבד XD
Reply


Messages In This Thread
פקודות ופונקציות יעילות - by MenaceX^ - 10.11.2009, 13:47
Re: פקודות יעילות. - by Amit_B - 10.11.2009, 13:51
Re: פקודות יעילות. - by MenaceX^ - 10.11.2009, 13:54
Re: פקודות ופונקציות יעילות. - by zikit232 - 10.11.2009, 14:09
Re: פקודות ופונקציות יעילות. - by MenaceX^ - 10.11.2009, 14:18
Re: פקודות ופונקציות יעילות. - by [XST]O_x - 10.11.2009, 14:33
Re: פקודות ופונקציות יעילות. - by MenaceX^ - 10.11.2009, 15:01
Re: פקודות ופונקציות יעילות. - by [XST]O_x - 10.11.2009, 15:08
Re: פקודות ופונקציות יעילות. - by PoWerZ - 10.11.2009, 15:10
Re: פקודות ופונקציות יעילות. - by MenaceX^ - 10.11.2009, 15:10

Forum Jump:


Users browsing this thread: 1 Guest(s)