[AYUDA] Con este Comando
#2

Prueba esto:

pawn Код:
else if(strcmp(x_nr,"park",true) == 0)
    {
      new Float:x,Float:y,Float:z;
new Float:a;
new carid;
new getcarid;
if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { carid = PlayerInfo[playerid][pPcarkey]; }
else { return 1; }
getcarid = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, playername, sizeof(playername));
GetVehiclePos(carid, x, y, z);
//GetPlayerFacingAngle(playerid, a);
GetVehicleZAngle(carid, a);
if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1)
{
  if(PlayerInfo[playerid][pPcarkey] == 999)
{
SendClientMessage(playerid, COLOR_GREY, "You don't own a car.");
return 1;
}
if(getcarid == carid)
{
CarInfo[carid][cLocationx] = x;
CarInfo[carid][cLocationy] = y;
CarInfo[carid][cLocationz] = z;
CarInfo[carid][cAngle] = a;
format(string, sizeof(string), "~n~ Has estacionadado tu vehiculo en esta posicion. ~n~");
GameTextForPlayer(playerid, "Si el servidor se reinicia o el auto explota, Deberas buscarlo en el ultimo lugar que lo aparkaste.", 10000, 3);
OnPropUpdate();
OnPlayerUpdate(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
  }
}
    }
Reply


Messages In This Thread
[AYUDA] Con este Comando - by Jesus^ - 10.05.2010, 02:21
Re: [AYUDA] Con este Comando - by Dws - 10.05.2010, 13:31
Re: [AYUDA] Con este Comando - by Jesus^ - 10.05.2010, 14:45
Re: [AYUDA] Con este Comando - by Dws - 10.05.2010, 16:53
Re: [AYUDA] Con este Comando - by Jesus^ - 10.05.2010, 22:24
Re: [AYUDA] Con este Comando - by xenowort - 10.05.2010, 22:44
Re: [AYUDA] Con este Comando - by Jesus^ - 10.05.2010, 23:01

Forum Jump:


Users browsing this thread: 1 Guest(s)