15.03.2011, 19:49
pawn Код:
dcmd_sendtoadmh(playerid, params[])
{
new targetid, pName[MAX_PLAYER_NAME];
if(sscanf(params, "u", targetid)) return SendClientMessage, COLOR_RED, "/sendtoadmh [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_RED, "Player Not Found");
GetPlayerName(targetid, pName, MAX_PLAYER_NAME);
SetPlayerPos(targetid, -2329.9060058594, -1619.1413574219, 489.66583251953);
format(string, 128, "You transfered %s (ID: %d) to Admin's House", pName, targetid);
format(msg, 128, "You got transfered to Admin's House by Admin ID %d", playerid);
SendClientMessage(playerid, COLOR_LIGHTBULE, string);
SendClientMessage(targetid, COLOR_LIGHTBLUE, msg);
return 1;
}