08.04.2011, 19:48
well I can help you with the first one of. You must have zcmd and sscanf. Here, it's the cmd:
pawn Код:
CMD:tp(playerid, params[]) {
new id;
if(sscanf(params, "u", id)) {
if(IsPlayerAdmin(playerid)) {
if(!IsPlayerInAnyVehicle(playerid)) {
if(id != INVALID_PLAYER_ID) {
if(IsPlayerInRangeOfPoint(id, 10.0, 79.8441, -1531.5741, 2413.0000)) {
SetPlayerPos(id, 383.7876, -1602.9878, 2553.0000);
}
else return SendClientMessage(playerid, COLOR_PURPLE, "Player is not close to the point");
}
else return SendClientMessage(playerid, COLOR_GREY, "Error: Player not found");
}
else return SendClientMessage(playerid, COLOR_TAN, "You must be inside a vehicle to execute this command");
}
else return SendClientMessage(playerid, COLOR_BRIGHTRED, "You are not an admin");
}
else return SendClientMessage(playerid, COLOR_ORANGE, "Syntax Error: /tp [playerid]");
return 1;
}