14.01.2015, 21:56
pawn Код:
CMD:hsms(playerid, params[])
{
if(PlayerInfo[playerid][pFaction] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
if ((!hsms))
{
SendClientMessageEx(playerid, COLOR_GRAD2, "Please try again later, HMA Mole can be submitted every ten minutes.");
return 1;
}
new string[128];
if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /hmole [contract text]");
SetTimer("hMoleOn", hmoletimer, 0);hmole = 0;
format(string, sizeof(string), "SMS: %s ((/contract)), Sender:HMA (#BLOCKED) ",params);
SendClientMessageToAllEx(COLOR_YELLOW, string);
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "ERROR: You are not a member of the hitman agency!");
return 1;
}
return 1;
}