16.04.2018, 09:01
to fix the loose indentation
and from FactSkins1 - 7 which is unused symbol just disable it, you have to put " // to disable those unused symbol bruv.
i hope it helped
and from FactSkins1 - 7 which is unused symbol just disable it, you have to put " // to disable those unused symbol bruv.
i hope it helped
PHP код:
CMD:advertise(playerid, params[])
{
new string[128], name[MAX_PLAYER_NAME+1];
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_CORRECTION, "USAGE: (/ad)vertise [Advert Text]");
if(PlayerInfo[playerid][pAdmin] < 1)
{
if(PlayerInfo[playerid][pLevel] <= 1) return SendClientMessage(playerid, COLOR_CORRECTION, "You must be level 2 to place an advertise!");
if(ServerAdvert > gettime())
{
format(string, sizeof(string), "You must wait %d to put another ad", ServerAdvert - gettime());
return SendClientMessage(playerid, -1, string);
}
else
{
GetPlayerName(playerid, name, sizeof(name));
ServerAdvert = gettime()+120;// 120 seconds
format(string, sizeof(string), "Advertisement: %s Contact: %s Ph: %d", params, name, PlayerInfo[playerid]
[Phone]);
SendClientMessageToAll(COLOR_ADVERTISE, string);
GivePlayerMoney(playerid, -1000);
}
}
else
{
GetPlayerName(playerid, name, sizeof(name));
ServerAdvert = gettime()+120;// 120 seconds
format(string, sizeof(string), "Advertisement: %s Contact: %s Ph: %d", params, name, PlayerInfo[playerid]
[Phone]);
SendClientMessageToAll(COLOR_ADVERTISE, string);
GivePlayerMoney(playerid, -1000);
}
return 1;
}