Wysłany: 2013-01-23, 20:09
RandyEDC
Wiek: 37 Na forum: 5162 dni Posty: 8
Piwa : 5
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;
}
Wysłany: 2013-01-23, 20:27
Tatarino
Wiek: 37 Na forum: 4962 dni Posty: 2
Nick w MP: RangeR
Piwa : 1
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.
Tagi: blokada :: komend :: zabawie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: