Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Fuzzy168 on November 16, 2011, 11:40:38 am
-
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?
-
[pawn]bodypart == case:6[/pawn]
case is for switch blocks only.
[pawn]bodypart == 6[/pawn]
-
so that mean my script should be something like this?
[pawn] else if(bodypart == 6)
{
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]
-
Yes.
-
Yes.
Btw lol then what are you doing? ;)
-
Uh, contributing to the community. :-\
-
Uh, contributing to the community. :-\
I didn't say to you Errick ::)
-
I didn't say to you Errick ::)
Yes.
Btw lol then what are you doing? ;)
And who's Errick? :|
-
@icecream
You're weird.
-
He's not just weird, he is the most weirdest icecream I've ever seen in my entire life.!!
-
He's not just weird, he is the most weirdest icecream I've ever seen in my entire life.!!
Looks like the people have started knowing me well.......
-
Topic locked. Case solved. :P