//OnPlayerUpdate
static
Float: cHealth,
Float: pHealth[MAX_PLAYERS];
GetPlayerHealth(playerid, cHealth);
if(cHealth != pHealth[playerid]) {
OnPlayerHealthChange(playerid, pHealth[playerid], cHealth);
pHealth[playerid] = cHealth;
}
OnPlayerHealthChange(playerid, Float: oldhealth, Float: newhealth) {
new tmp[128];
GetPlayerName(playerid, tmp, MAX_PLAYER_NAME);
format(tmp, sizeof tmp, "%s changed his health from %.0f to %.0f", oldhealth, newhealth);
SendClientMessageToAll(BLUE, tmp);
}
CMD:armourme(playerid, params[])
{
if(dini_Int(PFile(playerid),"VipMember")<3)return SendClientMessage(playerid, red, "You must be Premium member to use this command");
{
SendClientMessage(playerid, red, "You must be Premium member to %.0f to %.0f", oldhealth, newhealth);
SetPlayerArmour(playerid, 99);
}
return 1;
}
Do not post leech.
Ill explain it in a way you might be able to understand. How.Do.You.Add.That.Script.In.His.Script.In.The.Ri ght.Places.So.That.He.Will.Not. Receive.Errors. All set? |
public OnPlayerUpdate(playerid)
{
static
Float: cHealth,
Float: pHealth[MAX_PLAYERS];
GetPlayerHealth(playerid, cHealth);
if(cHealth != pHealth[playerid]) {
OnPlayerHealthChange(playerid, pHealth[playerid], cHealth);
pHealth[playerid] = cHealth;
return 1;
}
OnPlayerHealthChange(playerid, Float: oldhealth, Float: newhealth) {
new tmp[128];
GetPlayerName(playerid, tmp, MAX_PLAYER_NAME);
format(tmp, sizeof tmp, "%s changed his health from %.0f to %.0f", oldhealth, newhealth);
SendClientMessageToAll(BLUE, tmp);
}
CMD:armourme(playerid, params[])
{
if(dini_Int(PFile(playerid),"VipMember")<3)return SendClientMessage(playerid, red, "You must be Premium member to use this command");
{
SendClientMessage(playerid, red, "You must be Premium member to %.0f to %.0f", oldhealth, newhealth);
SetPlayerArmour(playerid, 99);
}
return 1;
}
pawn Код:
pawn Код:
pawn Код:
|
It's funny how you say to me not to post leech while you are doing it.
OT : pawn Код:
pawn Код:
pawn Код:
|
//OnPlayerUpdate
static
Float: cHealth,
Float: pHealth[MAX_PLAYERS];
GetPlayerHealth(playerid, cHealth);
if(cHealth != pHealth[playerid]) {
OnPlayerHealthChange(playerid, pHealth[playerid], cHealth);
pHealth[playerid] = cHealth;
}
OnPlayerHealthChange(playerid, Float: oldhealth, Float: newhealth) {
new tmp[128];
GetPlayerName(playerid, tmp, MAX_PLAYER_NAME);
format(tmp, sizeof tmp, "%s changed his health from %.0f to %.0f", oldhealth, newhealth);
SendClientMessageToAll(BLUE, tmp);
}
CMD:armourme(playerid, params[])
{
if(dini_Int(PFile(playerid),"VipMember")<3)return SendClientMessage(playerid, red, "You must be Premium member to use this command");
{
SendClientMessage(playerid, red, "You must be Premium member to %.0f to %.0f", oldhealth, newhealth);
SetPlayerArmour(playerid, 99);
}
return 1;
}
OnPlayerHealthChange(playerid, pHealth[playerid], cHealth);
OnPlayerArmourChange(playerid, pArmour[playerid], cArmour);
new szString[128];
format(szString, sizeof(szString), "Welcome to my server %s. Your IP address is %s.", GetName(playerid), getPlayerIP(playerid));
SendClientMessage(playerid, COLOR, szString);
Bots.... |
OHHH YEAH. |
dini. |
He follow me ? What does that even mean... |