Need Help With Admin Cmds
#8

Quote:
Originally Posted by Kingunit
Посмотреть сообщение
pawn Код:
CMD:goto(playerid, params[])
{
    if(PlayerInfo[playerid][Adminlevel] < 1) return SendClientMessage(playerid, 0xFFFFFFFF,".:: You are not authorized to use this command ::."); // Own Vars
    new targetid, string[128];
    if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, 0xFFFFFFFF, "[PlayerID/PartOfName]");
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFFF, " Player not connected!");
    else
    {
        new pName[24];
        GetPlayerName(targetid,pName,128);
        format(string, sizeof(string), "[ADMIN] You succesfully teleported to [%d] %s.",targetid, pName);
        SendClientMessage(playerid, 0xFFFFFFFF,string);
        SetPlayerInterior(playerid,GetPlayerInterior(targetid));
        new Float:TPX, Float:TPY, Float:TPZ;
        GetPlayerPos(targetid, TPX, TPY, TPZ);
        SetPlayerPos(playerid, TPX, TPY, TPZ+1);
    }
    return 1;
}
Read the topic again please.
Reply


Messages In This Thread
Need Help With Admin Cmds - by Salsa - 28.09.2011, 16:32
Re : Need Help With Admin Cmds - by Naruto_Emilio - 28.09.2011, 16:34
Re: Need Help With Admin Cmds - by FireCat - 28.09.2011, 16:34
Re: Need Help With Admin Cmds - by Salsa - 28.09.2011, 16:46
Re : Need Help With Admin Cmds - by Naruto_Emilio - 28.09.2011, 16:48
Re: Need Help With Admin Cmds - by [L3th4l] - 28.09.2011, 16:50
Re: Need Help With Admin Cmds - by Kingunit - 28.09.2011, 16:51
Re : Re: Need Help With Admin Cmds - by Naruto_Emilio - 28.09.2011, 16:55
Re: Re : Re: Need Help With Admin Cmds - by Kingunit - 28.09.2011, 16:59
Re: Re : Re: Need Help With Admin Cmds - by FireCat - 28.09.2011, 16:59

Forum Jump:


Users browsing this thread: 2 Guest(s)