Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Harrson poslato Februar 28, 2013, 21:09:24 POSLE PODNE

Naslov: [Pomoc] Respawn
Poruka od: Harrson poslato Februar 28, 2013, 21:09:24 POSLE PODNE
Skripta koju koristim: Godfather EDIT
Detaljan opis problema: [COS] ovako imam kommandu /vehrespawn i treba da mi seta Spawn od auta na 0 (COS je kao Biznis sistem preko ini. file-a) Problem je ponekad seta Spawn na 0 ali ponekad napravi novi .ini file
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): //

if(strcmp(x_nr, "respawn", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
for(new icx = 1; icx < sizeof(VehicleInfo); icx++)//loops through all the Businesses
{
if(IsPlayerInVehicle(playerid, Vehicles[icx]))
{
DestroyDynamic3DTextLabel(VehicleInfo[GetPlayerVehicleID(playerid)-210][Label]);
VehicleInfo[GetPlayerVehicleID(playerid)-210][Spawn] = 0;
SaveVehicle(GetPlayerVehicleID(playerid)-210);
DestroyVehicle(GetPlayerVehicleID(playerid));
}
}
}
Naslov: Odg: [Pomoc] Respawn
Poruka od: Harrson poslato Mart 01, 2013, 15:34:38 POSLE PODNE
BUMP