Pomoc oko pomicne kapije

Započeo Obrisan korisnik
8. Feb. 2010.
1,169
pregleda
6
postova
Deleted User
Obrisan korisnik
8. Feb. 2010.
Sve ljepo napravim uden ingame stavim si lidera PDa i kucam /f1o i samo pise Otvaraju se vrata FBI a nece da se otvore
//---------------------------------÷---------------------------------------------
    if(strcmp(cmd,"/f1c",true)==0)
{
    if(PlayerInfo == 1||PlayerInfo == 1)
    {
MoveObject(FBI, 1141.433472, -1207.282593, 20.815294,3.0 );
SendClientMessage(playerid, COLOR_GREEN, "Zatvaraju se vrata FBI.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi Policajac.");
}
return 1;
}
if(strcmp(cmd,"/f1o",true)==0)
{
    if(PlayerInfo == 1||PlayerInfo == 1)
    {
MoveObject(FBI, 1141.433472, -1217.833130, 20.815294,3.0 );
            SendClientMessage(playerid, COLOR_GREEN, "Otvaraju se vrata FBI.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi Policajac .");
}
return 1;
}

//----------------------------------------------------------------------------------------------------KRAJ-----------------------------


Kordinate otvorene kapije:
1141.433472, -1217.833130, 20.815294

Kordinate zatvorene kapije:
1141.433472, -1207.282593, 20.815294


Moze neko pomoc
ivicaosk
4
Made Man
8. Feb. 2010.
jesi stavio i pod new
Deleted User
Obrisan korisnik
8. Feb. 2010.
da jesam
GGC
5
Godfather
9. Feb. 2010.
Tamo gdje su ti drugi NEW-evi, stavis ovo
new FBI;


U public Ongamemodeinit

stavis
FBI = CreateObject(IDOBJETCA,1141.433472, -1207.282593, 20.815294, 0, 0, 0)


u public OnPlayerCommandText
//---------------------------------÷---------------------------------------------
    if(strcmp(cmd,"/f1c",true)==0)
{
    if(PlayerInfo == 1||PlayerInfo == 1)
    {
MoveObject(FBI, 1141.433472, -1207.282593, 20.815294,3.0 );
SendClientMessage(playerid, COLOR_GREEN, "Zatvaraju se vrata FBI.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi Policajac.");
}
return 1;
}
if(strcmp(cmd,"/f1o",true)==0)
{
    if(PlayerInfo == 1||PlayerInfo == 1)
    {
MoveObject(FBI, 1141.433472, -1217.833130, 20.815294,3.0 );
            SendClientMessage(playerid, COLOR_GREEN, "Otvaraju se vrata FBI.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi Policajac .");
}
return 1;
}

//----------------------------------------------------------------------------------------------------KRAJ-----------------------------


Ako nije jos uvijek dobro, napisi ovdje.
Chris
5
Godfather
9. Feb. 2010.
Ma napravi jednostavno ovako, ja sam po tome radio i sve radi...
http://balkan-samp.com/forum/index.php?topic=248.0
admin
5
Kingpin
9. Feb. 2010.
Ovo sto je GGC rekao trebalo bi biti u redu. On vjerovatno nije stavio objek pod ongamemodeinit, tj mozda je samo napravio new  ali nije ga kasnije definirao.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha