18.09.2011, 10:50
When will you fix a bug with fakeing players ?
taxi signs which can be attached to any vehicle. |
DIALOG_STYLE_PASSWORD
Added DIALOG_STYLE_PASSWORD for ShowPlayerDialog() which shows a masked input box |
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
new string[128];
format(string, sizeof(string), "You lost %d HP. Issuerid is: %s, with weapon ID: %i",amount, PlayerName(issuerid), weaponid);
SendClientMessage(playerid, -1, string);
return 1;
}
stock PlayerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name, sizeof(name));
return name;
}
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
new string[128];
format(string, sizeof(string), "You lost %f HP. Issuerid is: %s, with weapon ID: %i",amount, PlayerName(issuerid), weaponid);
SendClientMessage(playerid, -1, string);
return 1;
}
stock PlayerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name, sizeof(name));
return name;
}
what is here wrong
pawn Код:
|
SetPlayerGravity(playerid, Float:Gravity);