I want to create a script for headshot. here is my script..
[pawn] else if(bodypart == case:6)//here is the errors.
{
new Msg[128];
GameTextForPlayer(killerid, "Headshot!");
IncPlayerKills(killerid);
IncPlayerDeath(playerid);
IncPlayerCash(killerid, 500);
DecPlayerCash(playerid, 200);
format(Msg, sizeof(Msg), "%s headshoted %s.", gPlayers[killerid], gPlayers[playerid]);
BotMessageAll(Blue, Msg);
return 1;
}
[/pawn]Something wrong? how to put it?