if(strcmp(cmd, "/autoestacionar", true) == 0) { if(PlayerInfo[playerid][pCarro] == 255) { SendClientMessage(playerid, COLOR_GREY,"Vocк nгo possui um veiculo."); return 1; } if(!IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid,COLOR_GREY,"Vocк precisa estar no seu veiculo."); return 1; } new Float:x,Float:y,Float:z; new Float:a; new carid; new getcarid; if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1) { getcarid = GetPlayerVehicleID(playerid); GetPlayerName(playerid, playername, sizeof(playername)); GetVehiclePos(carid, x, y, z); GetVehicleZAngle(carid, a); if(getcarid == carid) { CarInfo[carid][cLocationx] = x; CarInfo[carid][cLocationy] = y; CarInfo[carid][cLocationz] = z; CarInfo[carid][cAngle] = a; GameTextForPlayer(playerid, "Seu veiculo, dara respawn aqui.", 10000, 3); OnPropUpdate(); OnPlayerUpdate(playerid); DestroyVehicle(carid); CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz],CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000); TogglePlayerControllable(playerid,1); SaveCars(); return true; } return true; } return true; }
CMD:meucomando(playerid)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SendClientMessage(playerid, "Debug 1");
if(x == 0.0 && y == 0.0 && z == 0.0)
{
SendClientMessage(playerid, "Debug 2");
SendClientMessage(playerid, "Vocк estб na posiзгo correta");
}
SendClientMessage(playerid, "Debug 3");
return 1;
}
if(strcmp(cmd, "/autoestacionar", true) == 0)
{
if(PlayerInfo[playerid][pCarro] == 255)
{
SendClientMessage(playerid, COLOR_GREY,"Vocк nгo possui um veiculo.");
return 1;
}
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,COLOR_GREY,"Vocк precisa estar no seu veiculo.");
return 1;
}
new Float:x,Float:y,Float:z;
new Float:a;
new carid;
new getcarid;
if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1)
{
getcarid = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, playername, sizeof(playername));
GetVehiclePos(carid, x, y, z);
GetVehicleZAngle(carid, a);
if(getcarid == carid)
{
CarInfo[carid][cLocationx] = x;
CarInfo[carid][cLocationy] = y;
CarInfo[carid][cLocationz] = z;
CarInfo[carid][cAngle] = a;
GameTextForPlayer(playerid, "Seu veiculo, dara respawn aqui.", 10000, 3);
OnPropUpdate();
OnPlayerUpdate(playerid);
DestroyVehicle(carid);
CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz],CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
SaveCars();
return true;
}
return true;
}
return true;
}
new carid;
if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1)
{
}
if(IsPlayerInVehicle(playerid,0) && CarInfo[0][cOwned] == 1)
{
}
Sou o Suk xCR7, jб tenho vc no Skype, vc se nгo me engando й o Laun olha lб, Dead "Pablo"
|
Se for ou nгo for, o problema й meu mlk, vai vй seus videos ae XX rlx..
|
Originally Posted by LuxurioN™
• Nгo й permitido a utilizaзгo de vбrias contas por um mesmo usuбrio.
|