Problem Reason save Date
#5

Ok,
PHP код:
enum pInfo
{
    
pPass,
    
pCash,
    
pAdmin,
    
pKills,
    
pScore,
    
pBan,
    
pDeaths
}
new 
PlayerInfo[MAX_PLAYERS][pInfo]; 
Command :
PHP код:
CMD:ban(playerid,params[])
{
new 
Joueur[MAX_PLAYER_NAME];
new 
Admin[MAX_PLAYER_NAME];
new 
id;
new 
raison[64];
new 
string[128];
new 
Heure,Minute,Seconde;
new 
Jour,Mois,Anne;
getdate(Jour,Mois,Anne);
gettime(Heure,Minute,Seconde);
if(
PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid,0xC0C0C0FF,"Vous n'avez pas accиs а cette commande.");
if(
sscanf(params,"us[64]",id,raison)) return SendClientMessage(playerid,0xC0C0C0FF,"Usage : /ban [id] [raison]");
GetPlayerName(playerid,Admin,sizeof(Admin));
GetPlayerName(id,Joueur,sizeof(Joueur));
format(string,sizeof(string),"Le joueur %s(%d) a йtй banni par l'Administrateur %s(%d) Raison: %s Heure: %02d:%02d:%02d Date: %02d/%02d/%d",Joueur,id,Admin,playerid,raison,Heure,Minute,Seconde,Anne,Mois,Jour);
SendClientMessageToAll(0x8395BEFF,string);
SetTimerEx("ban",1000,false,"id",id);
return 
1;

Timer :
PHP код:
forward ban(playerid);
public 
ban(playerid)
{
Ban(playerid);
return 
1;

Reply


Messages In This Thread
Problem Reason save Date - by Xprototype - 25.10.2013, 19:45
Re : Problem Reason save Date - by Xprototype - 25.10.2013, 20:05
Re : Problem Reason save Date - by Xprototype - 25.10.2013, 20:43
Re: Problem Reason save Date - by SilentSoul - 25.10.2013, 20:58
Re : Problem Reason save Date - by Xprototype - 25.10.2013, 21:00
Re: Problem Reason save Date - by SilentSoul - 25.10.2013, 21:12
Re : Problem Reason save Date - by Xprototype - 25.10.2013, 21:26
Re : Problem Reason save Date - by Xprototype - 25.10.2013, 21:33
Re: Problem Reason save Date - by SilentSoul - 25.10.2013, 21:36
Re : Problem Reason save Date - by Xprototype - 25.10.2013, 21:40

Forum Jump:


Users browsing this thread: 4 Guest(s)