03.12.2012, 15:56
pawn Код:
if(strcmp("/rampa", cmd, true) == 0)
{
new String[128];
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, 0xFFFFFFAA, "Vocк nгo estб em um veнculo!");
return 1;
}
else
{
new veh = GetPlayerVehicleID(playerid);
SetVehiclePos(veh, 1919.7539,-2882.4294,296.9119);
LinkVehicleToInterior(veh, 0);
SetVehicleZAngle(veh, 0.0);
PutPlayerInVehicle(playerid, veh, 0);
format(String, sizeof(String), "%s foi para a Rampa. (/rampa)", PlayerName(playerid));
SendClientMessageToAll(0x0080FFAA, String);
return 1;
}
}