12.10.2011, 23:35
PHP код:
CMD:get(playerid,params[]) {
new
id;
//plname[MAX_PLAYER_NAME],
//idname[MAX_PLAYER_NAME];
if ( GetPVarInt( playerid, "Level" ) == 0 )return SendClientMessage(playerid, 0xFF0000FF, "Only admin 1-3 can use this command!!");
if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_YELLOW,"Correct Usage:/get [ID]");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_RED,"Player ID Doesn't Exist");
{
new Float:X, Float:Y, Float:Z;
//GetPlayerName(playerid,plname,sizeof(plname));
//GetPlayerName(id,idname,sizeof(idname));
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(id, X, Y, Z);
} return 1;
}