Some Admin cmds
#5

pawn Код:
dcmd_sendtopd(playerid, params[])
{
    new targetid, pName[MAX_PLAYER_NAME], Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, Float:x, Float:y, Float:z);
    if(sscanf(params, "u", pName)) return SendClientMessage(playerid, COLOR_RED, "/sendtopd [playerid]");
    else if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You have no access to this command");
    else if(targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREEN, "Player Not Found");
    else
    {
        GetPlayerName(targetid, pName, MAX_PLAYER_NAME);
        SetPlayerPos(targetid, 1517.1479,-1619.2880,15.0087);
        format(msg, 128, "You transfered %s (ID: %d) to Police Departament", pName, targetid);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, msg);
    }
    return 1;
}
Reply


Messages In This Thread
Some Admin cmds - by Rivera - 14.03.2011, 15:12
Re: Some Admin cmds - by Jeffry - 14.03.2011, 15:33
Re: Some Admin cmds - by Rivera - 14.03.2011, 15:40
Re: Some Admin cmds - by Jeffry - 14.03.2011, 16:30
Re: Some Admin cmds - by Ricop522 - 14.03.2011, 16:33

Forum Jump:


Users browsing this thread: 1 Guest(s)