SA-MP Forums Archive
Bug id's - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Bug id's (/showthread.php?tid=600440)



Bug id's - Rafaeloo - 08.02.2016

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.


Re: Bug id's - K0P - 08.02.2016

Show the code
the bugged command


Re: Bug id's - Rafaeloo - 08.02.2016

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;