02.11.2012, 23:01
Try this:
pawn Код:
command(fbi, playerid, params[])
{
if (Player[playerid][Group] == 7)
{
new string[128];
switch(Player[playerid][undercover])
{
case 0:
{
Player[playerid][undercover] = 1;
format(string, sizeof(string), "* %s clips his ID card on", GetName(playerid));
NearByMessage(playerid, NICESKY, string);
SendClientmessage(playerid, WHITE, "You are now working as an undercover agent for the F.B.I");
Player[playerid][FBIduty] = 1;
}
case 1:
{
Player [playerid][undercover] = 0;
format(string, sizeof(string), "* %s unclips his ID card", GetName(playerid));
NearByMessage(playerid, NICSKY, string);
Player[playerid][FBIduty] = 0;
SendClientMessage(playerid, WHITE, "You are now a civilian again");
}
}
}
return 1;
}