I got a problem.
#4

Here you go
PHP код:
CMD:ddafk(playerid,params[]) {
    
#pragma unused params
    
if(PlayerInfo[playerid][DD] >= 1) {
        new 
string[256],kuldoneve[MAX_PLAYER_NAME];
        new 
Text3DAFK[MAX_PLAYERS];
        
SendClientMessage(playerid,0x99FF00AA,"Type /ddback when you back.");
        
GameTextForPlayer(playerid,"~r~ You are now AFK"50001);
        
AFK[playerid] = Create3DTextLabel("AFK"0xFF0000FF0.00.02.04000);
        
Attach3DTextLabelToPlayerAFK[playerid], playerid0.00.00.4);
        
TogglePlayerControllable(playerid0);
        
GetPlayerName(playeridkuldonevesizeof(kuldoneve));
        
format(stringsizeof(string), "[DareDevil]Newest Devil %s now away from keyboard",kuldoneveplayerid);
        if(
PlayerInfo[playerid][DD] == 2)
        
format(stringsizeof(string), "[DareDevil]Proud Devil %s now away from keyboard",kuldoneveplayerid);
        if(
PlayerInfo[playerid][DD] == 3)
        
format(stringsizeof(string), "[DareDevil]Light Devil%s now away from keyboard",kuldoneveplayerid);
        if(
PlayerInfo[playerid][DD] == 4)
        
format(stringsizeof(string), "[DareDevil]Experienced Devil %s now away from keyboard",kuldoneveplayerid);
        if(
PlayerInfo[playerid][DD] == 5)
        
format(stringsizeof(string), "[DareDevil]Doom Knight %s now away from keyboard",kuldoneveplayerid);
        if(
PlayerInfo[playerid][DD] == 6)
        
format(stringsizeof(string), "[DareDevil]Death Wisher %s now away from keyboard",kuldoneveplayerid);
        if(
PlayerInfo[playerid][DD] == 7)
        
format(stringsizeof(string), "[DareDevil]Golden Devil %s now away from keyboard",kuldoneveplayerid);
        if(
PlayerInfo[playerid][DD] == 8)
        
format(stringsizeof(string), "[DareDevil]Elite Devils %s now away from keyboard",kuldoneveplayerid);
        if(
PlayerInfo[playerid][DD] == 9)
        
format(stringsizeof(string), "[DareDevil]The Maestro %s now away from keyboard",kuldoneveplayerid);
        if(
PlayerInfo[playerid][DD] == 10)
        
format(stringsizeof(string), "[DareDevil]The DareDevils %s now away from keyboard",kuldoneveplayerid);
        
SendClientMessageToAll(0xFFFF00AAstring);
    } else return 
ShowPlayerDialog(playerid5DIALOG_STYLE_MSGBOX"ERROR""You need to be higher DD Level to use this command""OK""Cancel");
    return 
1;} 
Reply


Messages In This Thread
I got a problem. - by Kyriee - 27.08.2016, 10:32
Re: I got a problem. - by luke49 - 27.08.2016, 11:16
Re: I got a problem. - by oMa37 - 27.08.2016, 11:18
Re: I got a problem. - by Crosslife - 27.08.2016, 11:25
Re: I got a problem. - by Kyriee - 27.08.2016, 18:48
Re: I got a problem. - by Kyriee - 28.08.2016, 09:27

Forum Jump:


Users browsing this thread: 2 Guest(s)