help whit cmd /sanoff
#5

Code:
Quote:

COMMANDanoff(playerid, params[]){
new name[MAX_PLAYER_NAME],tmpcarcel,minutes;
if(!(date[playerid][pAdmin] == 5 || IsPlayerAdmin(playerid))) return 0;
if(sscanf(params, "u",name,minutes)) return SendClientMessage(playerid,-1,"/sanoff [Name] [Mins]");
new string[128];
format(string,sizeof(string),CuentasA,name);
if(!fexist(string)) return SendClientMessage(playerid,-1,"Error.");
new INI:File = INI_Open(string);
tmpcarcel = minutes * 60;
date[name][pSanTime] = gettime() + tmpcarcel;
date[name][pSan] = 1;
date[name][pTeam] = 0;
INI_WriteInt(File,"San",1);
INI_WriteInt(File,"SanTime",minutes*60);
format(string,128,"[CMD|OFF-LINE] %s san %d min. adm: %s",name,minutes,Nombre(playerid));
Informar(string);
INI_Close(File);
return 1;}

Reply


Messages In This Thread
help whit cmd /sanoff - by PaulCrouseVS - 28.07.2018, 18:02
Re: help whit cmd /sanoff - by Florin48 - 28.07.2018, 18:04
Re: help whit cmd /sanoff - by PaulCrouseVS - 28.07.2018, 18:08
Re: help whit cmd /sanoff - by Florin48 - 28.07.2018, 18:17
Re: help whit cmd /sanoff - by Heress - 28.07.2018, 18:18

Forum Jump:


Users browsing this thread: 1 Guest(s)