[Pomoc] /enter | /exit

Započeo Hitman, Avgust 29, 2011, 02:11:24 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GF (Edit)
Detaljan opis problema: Koristio sam tražilicu i dosta tema pročitao u vezi ovoga ali ne pomaže.. Znači nemogu viÅ¡e nigdje ni /enter ni /exit, i kada kupim kucu iz nje nemogu izaći. Ove dvije komande kao da ne postoje  ::)
Dio skripte:

Ovo je od kuca, ako treba nesto drugo recite

ENTER

if(strcmp(cmd, "/enter", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
//printf("Found House :%d",i);
if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
{
SetPlayerInterior(playerid,HouseInfo[i][hInt]);
SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
GameTextForPlayer(playerid, "~w~Dobrodosao kuci", 5000, 1);
PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
PlayerInfo[playerid][pLocal] = i;
}
else
{
GameTextForPlayer(playerid, "~r~Zakljucano", 5000, 1);
}
}
}


EXIT

if(strcmp(cmd, "/exit", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
for(new i = 0; i <  sizeof(HouseInfo); i++)
{
//printf("House :%d",i);
if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
if(HouseInfo[i][hHel] == 1)
{
new Float:tempheal;
GetPlayerHealth(playerid,tempheal);
if(tempheal < 100.0)
{
SetPlayerHealth(playerid,100.0);
}
}
}
}


Neke slike/video za lakse dobivanje pomoci(neobavezno)://