16.03.2011, 13:45
Quote:
Thanks !
But 1 another cmd: plz convert it again to ZCMD xD if i do it ... it don't work >_< pawn Код:
|
pawn Код:
CMD:heal(playerid, params[])
{
if(gTeam[playerid] == MEDIC)
{
if((params[0] == 0) || ((params[0] == 1) && (params[1] == 0)))
return SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /heal [id]");
new
Float: X,
Float: Y,
Float: Z,
id = strval(tmp);
if(!GetPlayerPos(id, X, Y, Z))
return SendClientMessage(playerid, COLOR_GREY, "AdmCmd: This player is not online!");
if(IsPlayerInRangeOfPoint(playerid, 3.0, X, Y, Z))
{
new
string[128];
GetPlayerName(playeridid, string, MAX_PLAYER_NAME);
format(string, sizeof string, "[INFO] Medic %s[%d] has healed you!", string, playerid);
SendClientMessage(id,COLOR_GREY,string);
SetPlayerHealth(id, 100.0);
} else {
SendClientMessage(playerid,COLOR_RED,"You're not near the player!");
}
} else {
SendClientMessage(playerid,COLOR_RED,"You're not a Medic!");
}
return 1;
}
Quote:
hey...
can someone have a skill weapons script?? if we kill someone we get weapons skill..... and we can check our weapons skill sorry for my bad english |
pawn Код:
new
PlayerSkillLevel[MAX_PLAYER][11];
#define GetPlayerSkillLevel(%0,%1) PlayerSkillLevel[(%0)][(%1)]
native SetPlayerSkillLevelEx(playerid, skill, level) = SetPlayerSkillLevel;
#define SetPlayerSkillLevel(%0,%1,%2) SetPlayerSkillLevelEx((%0), (%1), (PlayerSkillLevel[(%0)][(%1)] = (%2)))
pawn Код:
//OnPlayerDeath
switch(reason)
{
case 22..31: SetPlayerSkillLevel(playerid, reason - 22, GetPlayerSkillLevel(playerid, reason - 22) + 1);
case 32: SetPlayerSkillLevel(playerid, 6, GetPlayerSkillLevel(playerid, 6) + 1);
case 34: SetPlayerSkillLevel(playerid, 10, GetPlayerSkillLevel(playerid, 10) + 1);
}
Quote:
Well I need a script with the derby is an arena in which some machines are up and then moves down and hit.
|
Really I have no clue what you are trying to explain
Get someone who can translate your english in something understandable (no offend)