07.06.2012, 18:35
I have a end of the cmd
warning 209: function "cmd_equip" should return a value
warning 209: function "cmd_equip" should return a value
pawn Код:
}
COMMAND:givehealthinsurance(playerid, params[])
{
if(Died[playerid] == 1) { SendClientMessage(playerid, COLOR_WHITE, "Cannot use this command while dead."); return 1; }
if(isnull(params)) return SendClientMessage(playerid, COLOUR_SYSTEM, "USAGE: /givehealthinsurance [playerid/partofname]");
if(PlayerInfo[playerid][pFaction] == 2)
{
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID) { SendClientMessage(playerid, COLOR_WHITE, "Playerid is not an active playerid."); return 1; }
{
PlayerInfo[giveplayerid][pLifeLic] = 1;
new give1[128];
format(give1, sizeof(give1), "You have given %s a medical insurance.", GetPlayerNameEx(giveplayerid));
SendClientMessage(playerid, COLOR_WHITE, give1);
format(give1, sizeof(give1), "%s gave you a medical insurance.", GetPlayerNameEx(giveplayerid));
SendClientMessage(giveplayerid, COLOR_WHITE, give1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "WARNING: You are not in EMT.");
}
return 1;
}