20.02.2013, 14:08
pawn Код:
CMD:ir(playerid, params[]) {
if (!IsPlayerAdmin(playerid)) return 0x1;
if (params[0] == ' ' || !strlen(params)) return 0x1;
static
perc,
b,
Float:c[3],
nome[25];
perc = b = -1;
while (++perc < MAX_PLAYERS) {
if (IsPlayerConnected(perc)) {
GetPlayerName(perc, nome, 25);
if (!strcmp(params, nome)) {
b = perc;
break;
}
}
}
if (IsPlayerConnected(b) && b != INVALID_PLAYER_ID) {
GetPlayerPos(b, c[0], c[1], c[2]);
SetPlayerPos(playerid, c[0], c[1], c[2]);
SendClientMessage(playerid, -1, "Debug");
}
return 1;
}

