10.07.2013, 00:49
pawn Код:
CMD:ir(playerid, params[])
{
new PlayerID, Veiculo;
new rString[150];
if(sscanf(params, "u",PlayerID)) return SendClientMessage(playerid, Azul, "{3cff00}Ч INFO Ч {a9a9a9}/Goto [playerid]");
if(!IsPlayerConnected(PlayerID)) return SendClientMessage(playerid, Cinza, "{3cff00}Ч ERRO Ч {A9A9A9}Jogador nгo estб conectado.");
GetPlayerPos(PlayerID, X, Y, Z);
if(IsPlayerInAnyVehicle(playerid))
{
Veiculo = GetPlayerVehicleID(playerid);
LinkVehicleToInterior(Veiculo, GetPlayerInterior(PlayerID));
SetVehiclePos(Veiculo, X, Y, Z+2);
PutPlayerInVehicle(playerid, Veiculo, 0);
format(rString, sizeof(rString), "{3cff00}Ч INFO Ч {FFFFFF}Vocк foi atй o jogador {FF0000}%s{FFFFFF}.", rNome(PlayerID));
SendClientMessage(playerid, Cinza, rString);
format(rString, sizeof(rString), "{3cff00}Ч INFO Ч {FFFFFF}O jogador {FF0000}%s{FFFFFF} se teleportou atй vocк.", rNome(playerid));
SendClientMessage(PlayerID, Cinza, rString);
}else{
SetPlayerPos(playerid, X, Y, Z+2);
SetPlayerInterior(playerid, GetPlayerInterior(PlayerID));
format(rString, sizeof(rString), "{3cff00}Ч INFO Ч {FFFFFF}Vocк foi atй o jogador {FF0000}%s{FFFFFF}.", rNome(PlayerID));
SendClientMessage(playerid, Cinza, rString);
format(rString, sizeof(rString), "{3cff00}Ч INFO Ч {FFFFFF}O jogador {FF0000}%s{FFFFFF} se teleportou atй vocк.", rNome(playerid));
SendClientMessage(PlayerID, Cinza, rString);
}
return 1;
}