if(strcmp(cmdtext,"/BuyHps",true) == 0) { if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid,COLOR_RED,"айп мк осфйч лсу мйчреъ зййн "); GivePlayerMoney(playerid,-1000); SetPlayerHealth(playerid,100); } return 1; }]if(strcmp(cmdtext,"/BuyHps",true) == 0) { if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid,COLOR_RED,"айп мк осфйч лсу мйчреъ зййн "); GivePlayerMoney(playerid,-1000); SetPlayerHealth(playerid,100); } return 1; } |
new AutoVehFixTimer[MAX_SERVER_PLAYERS];
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;
}
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;
}
Originally Posted by MenaceX^
SetPlayerHealth, KillTimer.
זה כל מה שאתה צריך. |
stock GetPlayerNameFrom(playerid,string[],len,startread)
{
new PlayerName[MAX_PLAYER_NAME+1]; //Incase Name has MAX lengh
GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
strmid(string,PlayerName,startread,len+startread,255);
return 1;
}
Originally Posted by ►ϻozilla Fir3foж◄
Quote:
אבל זה לא עזר וזה העלים חלק מהאוֹבְּיֶקְטים בשרת S: |