Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Vukasin_Krimo poslato Februar 26, 2013, 12:10:28 POSLE PODNE

Naslov: [Pomoc]NBE /v buy problem
Poruka od: Vukasin_Krimo poslato Februar 26, 2013, 12:10:28 POSLE PODNE
Koristim GM NBE i pomesali su mi se id-evi vozila znaci kupim na pijaci vozilo hocu da ga parkiram i ono mi izbaci neko drugo vozilo,jel moguce nekako ispraviti ovo..? Hvala Unapred!
Naslov: Odg: [Pomoc]NBE /v buy problem
Poruka od: Milan || WG poslato Februar 26, 2013, 14:02:12 POSLE PODNE
Imas negdje vozilo ... U skripti definisano al nema ga kad pokrenes server i onda zbog takvih vozila se sve pomijesa koji cos koristis..
Naslov: Odg: [Pomoc]NBE /v buy problem
Poruka od: Vukasin_Krimo poslato Februar 26, 2013, 15:22:21 POSLE PODNE
Pa nzm koji je ali evo neke linije valjda ces provaliti,stvarno mi treba pomoc sto se tice ovoga..


if(strcmp(cmd, "/vehiclehelp", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pPcarkey]!=999 && PlayerInfo[playerid][pPcarkey]!=999 && PlayerInfo[playerid][pPcarkey]!=999)
        {
SendClientMessage(playerid, COLOR_GREEN,"________________Pomoc za Vozila________________");
SendClientMessage(playerid, COLOR_GRAD2,"*** VOZILO *** /v [ime]");
SendClientMessage(playerid, COLOR_GRAD3,"*** VOZILO *** Dostupna imena: park, lock, sell, sellto, color");
SendClientMessage(playerid, COLOR_GRAD4,"*** OSTALO *** /cellphonehelp /help /notehelp /renthelp /bizhelp /leaderhelp /fishhelp /cookhelp /irchelp");
return 1;
}
else
{
    SendClientMessage(playerid,COLOR_GRAD2,"** Ne posedujete kola ! **");
    return 1;
}
}
return 1;
}

if(strcmp(cmd, "/apark", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new Float:x,Float:y,Float:z;
new Float:a;
new carid;
carid = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, playername, sizeof(playername));
GetVehiclePos(carid, x, y, z);
// GetPlayerFacingAngle(playerid, a);
GetVehicleZAngle(carid, a);
if(PlayerInfo[playerid][pOSC] >= 4)
{
CarInfo[carid][cLocationx] = x;
CarInfo[carid][cLocationy] = y;
CarInfo[carid][cLocationz] = z;
CarInfo[carid][cAngle] = a;
format(string, sizeof(string), "~n~ Parkirali ste ovde kola. ~n~");
GameTextForPlayer(playerid, "Parkirali ste ovde kola. Ovde ce se stvarati.", 10000, 3);
    OnPropUpdate();
SacuvajIgraca(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);
return 1;
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   Nemate dozvolu da koristite ovu komandu !");
    return 1;
}
}
return 1;
}

/*if(strcmp(cmd, "/carspawn", true) == 0)
{
    if(!IsPlayerConnected(playerid)) { return 1; }
    if(PlayerInfo[playerid][pPcarkey]==999) { GameTextForPlayer(playerid, "~w~You do not have a car to locate", 2500, 3); return 1; }
    if(PlayerInfo[playerid][pPnumber]==0) { SendClientMessage(playerid, COLOR_GRAD2, "You do not have a phone to locate your car spawn"); return 1; }
SendClientMessage(playerid,COLOR_WHITE,"Car spawn location is red on a map");
  SetPlayerCheckpoint(playerid,CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationx], CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationy], CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationz], 5.0);
    return 1;
}*/
/*if(strcmp(cmd, "/carlocate", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pPcarkey] != 999)
{
    if(PlayerInfo[playerid][pPnumber] != 0)
    {
        if(gPlayerCheckPointStatus[playerid] != CHECKPOINT_CAR)
        {
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
format(string,sizeof(string),"** %s takes out a cellphone",sendername);
ProxDetector(15.0,playerid,string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
Wait(5000);
SendClientMessage(playerid,COLOR_WHITE,"On-Star: This is On-Star how can I help you?");
Wait(2000);
format(string,sizeof(string),"%s kaze: [Cell] I'd like to locate a stolen vehicle",sendername");
                    ProxDetector(15.0,playerid,string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
                    Wait(2000);
SendClientMessage(playerid,COLOR_WHIE,"On-Star: Okay sir, can I have your name and identification number please");
Wait(2000);
format(string,sizeof(string),"%s enters in the information into their cellphone",sendername);
ProxDetector(15.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
Wait(2000);
SendClientMessage(playerid,COLOR_WHITE,"On-Star: Okay sir, your car location is being uploaded to your phone.");
Wait(500);
SendClientMessage(playerid,COLOR_WHITE,"On-Star: If you wish to cancel the trace of your car, call this number again");
Wait(500);
SetPlayerCheckpoint(playerid,CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationx], CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationy], CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationz], 5.0);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_CAR;
return 1;
}
else
{
    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
Wait(1000);
SendClientMessage(playerid,COLOR_WHITE,"Your tracking of your vehicle has been automatically cancelled");
return 1;
}
}
else
{
    SendClientMessage(playerid,
}
}
else
{
GameTextForPlayer(playerid, "~w~You do not have a car to locate", 5000, 1);
}
}
return 1;
}*/