Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: zabawie
1. [DM] Blokada komend na zabawie
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;
}