[Pedido]PaitJob
#5

nao, vou mandar o comando do /v estacionar

PHP код:
else if(strcmp(x_nr,"estacionar",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 if(
GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { carid PlayerInfo[playerid][pPcarkey2]; }
                else if(
GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { carid PlayerInfo[playerid][pPcarkey3]; }
                else { return 
1; }
                
getcarid GetPlayerVehicleID(playerid);
                
GetPlayerName(playeridplayernamesizeof(playername));
                
GetVehiclePos(caridxyz);
                
//GetPlayerFacingAngle(playerid, a);
                
GetVehicleZAngle(carida);
                if(
IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1)
                {
                       if(
PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 PlayerInfo[playerid][pPcarkey3])
                    {
                        
SendClientMessage(playeridCOLOR_RED"Vocк nгo й dono de um carro.");
                        return 
1;
                    }
                    if(
getcarid == carid)
                    {
                        
CarInfo[carid][cLocationx] = x;
                        
CarInfo[carid][cLocationy] = y;
                        
CarInfo[carid][cLocationz] = z;
                        
CarInfo[carid][cAngle] = a;
                        
format(stringsizeof(string), "~n~ Vocк estacionou o seu veнculo nesta posiзгo. ~n~");
                        
GameTextForPlayer(playerid"Vocк estacionou o seu veнculo nesta posiзгo. Ele vai reaparecer aqui."100003);
                        
OnPropUpdate();
                        
OnPlayerUpdate(playerid);
                        
DestroyVehicle(carid);
                        
CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
                        
TogglePlayerControllable(playerid1);
                        return 
1;
                       }
                }
            } 
Reply


Messages In This Thread
[Pedido]PaitJob - by [Dk]TuReTOo - 21.06.2011, 22:51
Re: [Pedido]PaitJob - by Dr_Pawno - 21.06.2011, 22:55
Re: [Pedido]PaitJob - by [Dk]TuReTOo - 21.06.2011, 22:58
Re: [Pedido]PaitJob - by Dr_Pawno - 21.06.2011, 23:06
Re: [Pedido]PaitJob - by [Dk]TuReTOo - 22.06.2011, 18:11
Re: [Pedido]PaitJob - by Dr_Pawno - 22.06.2011, 20:26
Re: [Pedido]PaitJob - by [Dk]TuReTOo - 23.06.2011, 12:39

Forum Jump:


Users browsing this thread: 1 Guest(s)