[HELP] 2 Error That Waist My All Time
#4

PHP код:
public OnPlayerCommandText(playeridcmdtext[]) 

    if(
PlayerInfoplayerid ][ P_InDM ] == )return SendErrorplayerid"[ERROR]: Cant use any commands while dming ..!!"); 
    if(
PlayerInfoplayerid ][ P_Away ] == )return SendErrorplayerid"[ERROR]: use /back"); 
    return 
1

CMD:afkplayeridparams[] ) 

    if((
PlayerInfoplayerid ][ P_Away ] = !P_DATAplayerid ][ P_Away ])) 
    
SendClientMessage(playeridCOLOR_YELLOW"You are now AFK, type /back to move again!"); 
    
TogglePlayerControllable(playerid,0); 
    
label[playerid] = Create3DTextLabel("AFK",yellow,30.0,40.0,50.0,40.0,0); 
    
Attach3DTextLabelToPlayer(label[playerid], playerid0.00.00.7); 
    new 
string3[164]; 
    new 
name[MAX_PLAYER_NAME]; 
    
GetPlayerName(playeridnamesizeof(name)); 
    
format(string3sizeof(string3), "{FF0000}[AFK INFO]: {FFFFFF}%s is now Away from the keyboard.{FF0000}(/afk)"name); 
    
SendClientMessageToAll(COLOR_YELLOWstring3); 
    return 
1;  

Reply


Messages In This Thread
[HELP] 2 Error That Waist My All Time - by M3mPHi$_S3 - 13.10.2012, 13:25
Re : [HELP] 2 Error That Waist My All Time - by yusei - 13.10.2012, 13:35
Re: [HELP] 2 Error That Waist My All Time - by M3mPHi$_S3 - 13.10.2012, 13:37
Re: [HELP] 2 Error That Waist My All Time - by Ghost_Boii - 13.10.2012, 13:43
Re: [HELP] 2 Error That Waist My All Time - by M3mPHi$_S3 - 13.10.2012, 13:48
Re: [HELP] 2 Error That Waist My All Time - by Joshman543 - 13.10.2012, 13:52
Re: [HELP] 2 Error That Waist My All Time - by M3mPHi$_S3 - 13.10.2012, 13:56
Re: [HELP] 2 Error That Waist My All Time - by Lordzy - 13.10.2012, 13:57
Re: [HELP] 2 Error That Waist My All Time - by M3mPHi$_S3 - 13.10.2012, 13:59
Re: [HELP] 2 Error That Waist My All Time - by Niko_boy - 13.10.2012, 14:04

Forum Jump:


Users browsing this thread: 1 Guest(s)