Bug id's
#1

Hello Forum !!
i have a seriously problemm...
I have a server roleplay with hzrp gamemode.
i have modified some script
but when i want to kick anyone or ban or /gethere or gotoid the id is not specified..
who can help me ??

please reply me and sorry for my eng.
Reply
#2

Show the code
the bugged command
Reply
#3

PHP код:
CMD:gotoid(playeridparams[])
{
    new 
giveplayerid;
    if(
sscanf(params"u"giveplayerid))
        return 
SendClientMessage(playeridCOLOR_WHITE"Perdorimi: /gotoid [playerid/partofname]");
    new 
Float:plocx,Float:plocy,Float:plocz;
    if(
IsPlayerConnected(giveplayerid))
    {
        if(
PlayerInfo[playerid][pAdmin] >= 2)
        {
            if(
AdminDuty[playerid] != && PlayerInfo[playerid][pAdmin] < 6)
            {
                
SendClientMessage(playerid,COLOR_WHITE"Ju nuk jeni nл detyrл si admin. Per te pasur akses kete komande duhet te jesh ne detyre. Shkrauj /aduty per te dal ne detyre..");
                return 
1;
            }
            if(
GetPlayerState(giveplayerid) == PLAYER_STATE_SPECTATING)
            {
                
SendClientMessage(playeridCOLOR_GRAD2"That player is spectating someone.");
                return 
1;
            }
            if(
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
            {
                
SendClientMessage(playeridCOLOR_GRAD2"You can't do this while spectating.");
                return 
1;
            }
            
GetPlayerPos(giveplayeridplocxplocyplocz);
            
Streamer_UpdateEx(playeridplocxplocyplocz);
            if(
GetPlayerState(playerid) == 2)
            {
                new 
tmpcar GetPlayerVehicleID(playerid);
                
SetVehiclePos(tmpcarplocxplocy+4plocz);
                
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                
fVehSpeed[playerid] = 0.0;
            }
            else
            {
                
SetPlayerPos(playerid,plocx,plocy+2plocz);
            }
            
SetPlayerInterior(playeridGetPlayerInterior(giveplayerid));
            
SetPlayerVirtualWorld(playeridGetPlayerVirtualWorld(giveplayerid));
            new 
giveplayeridvw GetPlayerVirtualWorld(giveplayerid);
            new 
giveplayerint =  GetPlayerInterior(giveplayerid);
            
PlayerInfo[playerid][pVW] = giveplayeridvw;
            
PlayerInfo[playerid][pInt] = giveplayerint;
            
SendClientMessage(playeridCOLOR_WHITE"Ti u teleportove!");
        }
        else
        {
            
SendClientMessage(playeridCOLOR_GRAD1"Ti nuk je i autorizuar ta perdoresh kete Komande!");
        }
    }
    else 
SendClientMessage(playeridCOLOR_GRAD1"Invalid player specified.");
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)