Skripta koju koristim:CW.PWN
Detaljan opis problema😛a ovo kad kucam /recon daje mi target is not available ili you are not in your house idem u moja kuca i daje mi target is not available da mi dajete ako mogu recon koj radi treba mi za srw
Dio skripte: evo vi moja /recon
http://pastebin.com/ikBY2PFK ako znate rjesite to ako ne dajte vasa ako hocete
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Pomoc komanda
221
pregleda
2
postova
24. Dec. 2012.
if(strcmp(cmd, "/tv", true) == 0 || strcmp(cmd, "/recon", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Ta stvar je izbacena iz igrice.");
return 1;
}
if(PlayerInfo > 0)
{
if(WatchingTV < 1)
{
GetPlayerPos(playerid, Unspec,Unspec,Unspec);
}
}
new hkey = PlayerInfo;
new house = PlayerInfo;
if(Spectate == 255 && PlayerInfo != 255 || Spectate == 255 && PlayerInfo > 0)
{
GetPlayerPos(playerid, Unspec, Unspec, Unspec);
Unspec = PlayerInfo;
Unspec = PlayerInfo;
PlayerInfo = 255;
gTeam = 0;
}
tmp = strtok(cmdtext, idx);
if(strcmp("off", tmp, true, strlen(tmp)) == 0)
{
if(WatchingTV > 0)
{
WatchingTV = 0;
Spectate = 253;
GameTextForPlayer(playerid, "~w~ TV~n~~r~ Off", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Ne gledate TV !");
return 1;
}
}
if(PlayerInfo < 1 || PlayerInfo < 1 || PlayerInfo < 1)
{
if(house == 255)
{
GameTextForPlayer(playerid, "~r~Nema televizora ovde", 5000, 1);
return 1;
}
}
if(PlayerInfo > 1 || PlayerInfo < 1 || PlayerInfo < 1 || PlayerToPoint(12.0, playerid, HouseInfo, HouseInfo,HouseInfo))
{
if(HouseInfo != 1)
{
GameTextForPlayer(playerid, "~r~Ova mogucnost nije instalirana", 5000, 1);
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
Spectate = giveplayerid;
new Float:health;
GetPlayerHealth(Spectate, health);
GetPlayerName(Spectate, giveplayer, sizeof(giveplayer));
new cash = JBC_GetPlayerMoney(Spectate);
if (PlayerInfo >= 1)
{
format(string, sizeof(string), "Recon: (%d) %s $%d H:%.0f",Spectate,giveplayer,cash,health);
}
else
{
format(string, sizeof(string), "UAV: (%d) %s",Spectate,giveplayer);
}
SendClientMessage(playerid, COLOR_GREEN, string);
WatchingTV = 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "Cilj nije dostupan.");
}
}
else
{
SendClientMessage(playerid, COLOR_GREEN, " Niste u vasoj kuci !");
return 1;
}
}
return 1;
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava