Unkown command
#2

PHP код:
CMD:gotocoord(playerid,params[]) {
    if(
PlayerInfo[playerid][Level] >= 4)
    {
        new 
Float:x,Float:y,Float:z;
        if(
sscanf(params,"fff",x,y,z))return SendClientMessage(playerid,red,"ERROR: Usage /gotocoord [X] [Y] [Z]");
        new 
PlayerName[MAX_PLAYER_NAME];
        
GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
        if(
PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");
        
TeleTimer[playerid] = SetTimerEx("ttimer"1000true"i",playerid);
        
tseconds[playerid] = 6;
        
format(tstring,45,"You Must wait %d seconds before teleporting"tseconds[playerid]-1);
        if(
PlayerInfo[playerid][Level] == 0SendClientMessage(playerid,COLOR_LIGHTBLUEtstring);
        
vCount[playerid] = 1;
        
Tx[playerid] = x;
        
Ty[playerid] = y;
        
Tz[playerid] = z;
        
Ti[playerid] = 0;
        
format(telestring,43,"Coord!");
        
format(nstringsizeof(nstring),"[TELE]:Admin %s has just Teleported To a coordinates (/gotocoord)"PlayerName);
        
SendClientMessageToAll(COLOR_LIGHTBLUEnstring);
        
SetTimerEx("setstunt",3000,0,"i"playerid);
    }
    else return 
ShowPlayerDialog(playerid90321DIALOG_STYLE_MSGBOX"{FF0000}SFTDM - ERROR MSG"HighLevel,"OK","");
    return 
1;

Reply


Messages In This Thread
Unkown command - by KillerStrike23 - 06.01.2017, 20:12
Re: Unkown command - by Yaa - 06.01.2017, 20:51
Re: Unkown command - by KillerStrike23 - 08.01.2017, 19:47
Re: Unkown command - by Dayrion - 08.01.2017, 20:37

Forum Jump:


Users browsing this thread: 1 Guest(s)