Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2013-01-23, 20:09


RandyEDC







Wiek: 37
Na forum: 5161 dni
Posty: 8

Piwa: 5

Respekt: 49

Czemu po wpisaniu /sianoexit nadal nie moge uzywac komend ?

Kod:

public OnPlayerCommandText(playerid, cmdtext[])
{
if(ZapisalSie[playerid] == 1)
{
SendClientMessage(playerid, 0xf0000ff, "Nie mo?esz u?ywa? komend!Wpisz /sianoexit");
return 1;
}
if (strcmp("/siano", cmdtext, true, 10) == 0)
{
if(JoinedHay[playerid] == 0)
{
if(ZapisalSie[playerid] == 0)

JoinedHay[playerid] = 1;
ZapisalSie[playerid] = 1;
SetPlayerWorldBounds(playerid, 116.7788, -70.06725, 105.1009, -116.7788);
TimeInHay[playerid] = GetTickCount();
SetPlayerPos(playerid, 0, 6.5, 3.2);
SetPlayerFacingAngle( playerid, 135 );
SetPlayerVirtualWorld(playerid, 50);
ResetPlayerWeapons(playerid);
return 1;
}
return 1;

}
if (strcmp("/sianoexit", cmdtext, true, 10) == 0)
{

if(JoinedHay[playerid] == 1)
{
if(ZapisalSie[playerid] == 1)

JoinedHay[playerid] = 0;
ZapisalSie[playerid] = 0;
SetPlayerWorldBounds(playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000);
TextDrawHideForPlayer(playerid,HAYTD[playerid]);
SpawnPlayer(playerid);
return 1;
}
return 1;
}
return 0;
}


Podpis


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-01-23, 20:27


Tatarino







Wiek: 37
Na forum: 4962 dni
Posty: 2
Nick w MP: RangeR

Piwa: 1

Respekt: 50

Kod:


public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/sianoexit", cmdtext, true, 10) == 0)
{
if(JoinedHay[playerid] == 1)
{
if(ZapisalSie[playerid] == 1)
{
JoinedHay[playerid] = 0;
ZapisalSie[playerid] = 0;
SetPlayerWorldBounds(playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000);
TextDrawHideForPlayer(playerid,HAYTD[playerid]);
SpawnPlayer(playerid);
}
}
return 1;
}

if(ZapisalSie[playerid] == 1)
{
return SendClientMessage(playerid, 0xf0000ff, "Nie mo?esz u?ywa? komend!Wpisz /sianoexit");
}


if (strcmp("/siano", cmdtext, true, 10) == 0)
{
if(JoinedHay[playerid] == 0)
{
if(ZapisalSie[playerid] == 0)
{
JoinedHay[playerid] = 1;
ZapisalSie[playerid] = 1;
SetPlayerWorldBounds(playerid, 116.7788, -70.06725, 105.1009, -116.7788);
TimeInHay[playerid] = GetTickCount();
SetPlayerPos(playerid, 0, 6.5, 3.2);
SetPlayerFacingAngle( playerid, 135 );
SetPlayerVirtualWorld(playerid, 50);
ResetPlayerWeapons(playerid);
}
}
return 1;
}

return 0;
}


Powinno dzia?a? , pozdrawiam.

Postaw piwo autorowi tego posta
 

 
Tagi: blokada :: komend :: zabawie
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [DM] Blokada komend na zabawie Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku