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

Код:
public OnPlayerCommandText(playerid, cmdtext[]) 
{ 
    if(P_DATA[ playerid ][ P_InDM ] == 0 )return SendError( playerid, "[ERROR]: Cant use any commands while dming ..!!"); 
    if(P_DATA[ playerid ][ P_Away ] == 0 )return SendError( playerid, "[ERROR]: use /back"); 
    return 1; 
} 

CMD:afk( playerid, params[] ) 
{ 
    if((P_DATA[ playerid ][ P_Away ] = !P_DATA[ playerid ][ P_Away ])) 
    SendClientMessage(playerid, COLOR_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], playerid, 0.0, 0.0, 0.7); 

    new string3[164]; 
    new name[MAX_PLAYER_NAME]; 
    GetPlayerName(playerid, name, sizeof(name)); 
    format(string3, sizeof(string3), "{FF0000}[AFK INFO]: {FFFFFF}%s is now Away from the keyboard.{FF0000}(/afk)", name); 
    SendClientMessageToAll(COLOR_YELLOW, string3); 
    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: 3 Guest(s)