21.12.2013, 13:09
Yes.
EDIT:
also when i'm using:
as
i don't know why that gives me a warning " error 001: expected token: ";", but found "if" "
EDIT:
also when i'm using:
Quote:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid) { if( weaponid == 41)//This function gets the player weapon id. { return SendClientMessage(playerid, -1, "You have been attacked by a spraycan"), SendClientMessage(issuerid, -1, "You attacked someone using a spraycan"); } return true; } |
Quote:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid) { new String[ 128 ] if( weaponid == 41) { format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may possibly Rush Tazed (%s).", GetPlayerNameEx(issuerid), playerid); ABroadCast(COLOR_YELLOW, String, 2); } return true; } |