#7

Try changing this"
PHP код:
if(sscanf(params"u"giveplayerid)) return SendClientMessageEx(playeridCOLOR_WHITE"USAGE: /gethere [playerid]"); 
to this:
PHP код:
if(sscanf(params"i"giveplayerid)) return SendClientMessageEx(playeridCOLOR_WHITE"USAGE: /gethere [playerid]"); 
Also, I have the same code in my script. I'll post it here. If you want, you can edit it and use it.
PHP код:
dcmd_tptome(playeridparams[])
{
    new 
pIDFloat:adminxFloat:adminyFloat:adminz;
    if(
PlayerInfo[playerid][pAdmin]==0) return SendClientMessage(playeridCOLOR_WHITE,"Server: Unrecognized command, type /commands to see the commands available for you.");
    if(
PlayerInfo[playerid][pAdmin]==1) return SendClientMessage(playeridCOLOR_ADMINBLUE"ERROR: This command is unavailable for your admin rank.");
    if(
admduty[playerid]==0) return SendClientMessage(playeridCOLOR_ADMINBLUE"ERROR: You must be on duty to use this command.");
    if(
sscanf(params"u"pID)) return SendClientMessage(playeridCOLOR_ADMINBLUE"Correct usage: /tptome [name/id]");
    if(
playerid==pID) return SendClientMessage(playeridCOLOR_ADMINBLUE"ERROR: The requested player is you.");
    if(!
IsPlayerConnected(pID)) return SendClientMessage(playeridCOLOR_ADMINBLUE"ERROR: This player is not connected.");
    if(
life[pID]==0) return SendClientMessage(playeridCOLOR_ADMINBLUE"ERROR: This player has not spawned.");
    if(
PlayerInfo[pID][pAdmin]==10) return SendClientMessage(playeridCOLOR_ADMINBLUE"ERROR: You cannot teleport AmalM to your location.");
    
GetPlayerPos(playeridadminxadminyadminz);
    
SetPlayerVirtualWorld(pID,GetPlayerVirtualWorld(playerid));
    
SetPlayerInterior(pID,GetPlayerInterior(playerid));
    if(
IsPlayerInAnyVehicle(pID))
    {
        new 
vehicleid=GetPlayerVehicleID(pID);
        
SetVehiclePos(vehicleidadminxadminy+2adminz);
    }
    else
    {
        
SetPlayerPos(pIDadminxadminy+2adminz);
    }
    
SendClientMessage(playeridCOLOR_ADMINBLUE"The requested player has been teleported to your location successfully.");
    
SendClientMessage(pIDCOLOR_ORANGE"An admin has teleported you to his position.");
    return 
1;

Reply


Messages In This Thread
Help - by NayanIndia - 15.01.2015, 10:24
Re: Help - by ATGOggy - 15.01.2015, 10:26
Re: Help - by NayanIndia - 15.01.2015, 10:28
Re: Help - by NayanIndia - 15.01.2015, 10:32
Re: Help - by xVIP3Rx - 15.01.2015, 10:34
Re: Help - by NayanIndia - 15.01.2015, 10:36
Re: Help - by ATGOggy - 15.01.2015, 10:39
Re: Help - by Thoma - 15.01.2015, 10:39
Re: Help - by xVIP3Rx - 15.01.2015, 10:39
Re: Help - by NayanIndia - 15.01.2015, 10:40
Re: Help - by NayanIndia - 15.01.2015, 10:43
Re: Help - by NayanIndia - 15.01.2015, 10:45
Re: Help - by ATGOggy - 15.01.2015, 10:49
Re: Help - by NayanIndia - 15.01.2015, 10:52

Forum Jump:


Users browsing this thread: 1 Guest(s)