[Comments not Closed]
#8

Quote:
Originally Posted by jlalt
Посмотреть сообщение
You have HideSky function but you never used it in closesky function, so try this:
PHP код:
    ///////////////////////////////My Frist FS By Astana Lol //////////////////////////// Please Dont Remove My Name
#include <a_samp>
#include <zcmd>
new ShowSkyText[MAX_PLAYERS];
new 
Text:Sky0;
new 
Text:Sky1;
new 
Text:Sky3;
new 
Text:Sky4;
new 
Text:Sky5;
new 
Text:Sky6;
new 
Text:Sky7;
new 
Text:Sky8;
new 
Text:Sky9;
new 
Text:Sky10;
new 
Text:Sky11;
new 
Text:Sky12;
new 
Text:Sky13;
new 
Text:Sky14;
new 
Text:Sky15;
new 
Text:Sky16;
new 
Text:Sky17;
new 
Text:Sky18;
new 
Text:Sky19;
new 
Text:Sky20;
new 
Text:Sky21;
new 
Text:Sky22;
new 
Text:Sky23;
new 
Text:Sky24;
new 
Text:Sky25;
new 
Text:Sky26;
new 
Text:Sky27;
ShowSky(playerid)
{
        
TextDrawShowForPlayer(playeridSky0);
        
TextDrawShowForPlayer(playeridSky1);
        
TextDrawShowForPlayer(playeridSky3);
        
TextDrawShowForPlayer(playeridSky4);
        
TextDrawShowForPlayer(playeridSky5);
        
TextDrawShowForPlayer(playeridSky6);
        
TextDrawShowForPlayer(playeridSky7);
        
TextDrawShowForPlayer(playeridSky8);
        
TextDrawShowForPlayer(playeridSky9);
        
TextDrawShowForPlayer(playeridSky10);
        
TextDrawShowForPlayer(playeridSky11);
        
TextDrawShowForPlayer(playeridSky12);
        
TextDrawShowForPlayer(playeridSky13);
        
TextDrawShowForPlayer(playeridSky14);
        
TextDrawShowForPlayer(playeridSky15);
        
TextDrawShowForPlayer(playeridSky16);
        
TextDrawShowForPlayer(playeridSky17);
        
TextDrawShowForPlayer(playeridSky18);
        
TextDrawShowForPlayer(playeridSky19);
        
TextDrawShowForPlayer(playeridSky20);
        
TextDrawShowForPlayer(playeridSky21);
        
TextDrawShowForPlayer(playeridSky22);
        
TextDrawShowForPlayer(playeridSky23);
        
TextDrawShowForPlayer(playeridSky24);
        
TextDrawShowForPlayer(playeridSky25);
        
TextDrawShowForPlayer(playeridSky26);
        
TextDrawShowForPlayer(playeridSky27);
}
HideSky(playerid)
{
    
TextDrawHideForPlayer(playeridSky0);
    
TextDrawHideForPlayer(playeridSky1);
    
TextDrawHideForPlayer(playeridSky3);
    
TextDrawHideForPlayer(playeridSky4);
    
TextDrawHideForPlayer(playeridSky5);
    
TextDrawHideForPlayer(playeridSky6);
    
TextDrawHideForPlayer(playeridSky7);
    
TextDrawHideForPlayer(playeridSky8);
    
TextDrawHideForPlayer(playeridSky9);
    
TextDrawHideForPlayer(playeridSky10);
    
TextDrawHideForPlayer(playeridSky11);
    
TextDrawHideForPlayer(playeridSky12);
    
TextDrawHideForPlayer(playeridSky13);
    
TextDrawHideForPlayer(playeridSky14);
    
TextDrawHideForPlayer(playeridSky15);
    
TextDrawHideForPlayer(playeridSky16);
    
TextDrawHideForPlayer(playeridSky17);
    
TextDrawHideForPlayer(playeridSky18);
    
TextDrawHideForPlayer(playeridSky19);
    
TextDrawHideForPlayer(playeridSky20);
    
TextDrawHideForPlayer(playeridSky21);
    
TextDrawHideForPlayer(playeridSky22);
    
TextDrawHideForPlayer(playeridSky23);
    
TextDrawHideForPlayer(playeridSky24);
    
TextDrawHideForPlayer(playeridSky25);
    
TextDrawHideForPlayer(playeridSky26);
    
TextDrawHideForPlayer(playeridSky27);
}
public 
OnPlayerText(playeridtext[])
{
    if(
text[0] == '1')
    {
        if(
ShowSkyText[playerid] == 1)
        {
          
GivePlayerWeapon(playerid4646);
          
SetPlayerPos(playerid1686.9702,-1312.8329,872.7163);
          
SendClientMessage(playerid, -1"This FS By AstanaLol");
        }
    }
    if(
text[0] == '2')
    {
        if(
ShowSkyText[playerid] == 1)
        {
            
GivePlayerWeapon(playerid4646);
            
SetPlayerPos(playerid, -2112.7942,659.1328,875.6769);
            
SendClientMessage(playerid, -1"This FS By AstanaLol");
        }
    }
    if(
text[0] == '3')
    {
        if(
ShowSkyText[playerid] == 1)
        {
          
GivePlayerWeapon(playerid4646);
          
SetPlayerPos(playerid2343.6409,1521.8400,732.7235);
          
SendClientMessage(playerid, -1"This FS By AstanaLol");
        }
    }
    if(
text[0] == '4')
    {
        if(
ShowSkyText[playerid] == 1)
        {
            
GivePlayerWeapon(playerid4646);
            
SetPlayerPos(playerid, -2325.4336,-1577.2311,831.6756);
            
SendClientMessage(playerid, -1"This FS By AstanaLol");
        }
    }
    if(
text[0] == '5')
    {
        if(
ShowSkyText[playerid] == 1)
        {
          
GivePlayerWeapon(playerid4646);
          
SetPlayerPos(playerid, -227.6763,58.2109,882.4087);
          
SendClientMessage(playerid, -1"This FS By AstanaLol");
        }
    }
    if(
text[0] == '6')
    {
        if(
ShowSkyText[playerid] == 1)
        {
            
GivePlayerWeapon(playerid4646);
            
SetPlayerPos(playerid530.2466,2342.7766,850.5984);
            
SendClientMessage(playerid, -1"This FS By AstanaLol");
        }
    }
    if(
text[0] == '7')
    {
        if(
ShowSkyText[playerid] == 1)
        {
            
GivePlayerWeapon(playerid4646);
            
SetPlayerPos(playerid, -1227.7010,1782.9180,896.1829);
            
SendClientMessage(playerid, -1"This FS By AstanaLol");
        }
    }
    return 
1;
}
CMD:showsky(playeridparams[])
{
    
ShowSky(playerid);
    
ShowSkyText[playerid] = 1;
    return 
1;
}
CMD:closesky(playeridparams[])
{
    
ShowSkyText[playerid] = 0;
    
HideSky(playerid);
    
SendClientMessage(playerid, -1"This FS By AstanaLol");
    return 
1;

about your "stock(s)": https://sampforum.blast.hk/showthread.php?tid=570635
i mean how to off
PHP код:
OnPlayerText 
becouse its my problems
its not close :3 still after type first time that numbers i can write more :/ i cant close that numbers
Reply


Messages In This Thread
[Comments not Closed] - by astanalol - 10.09.2016, 03:25
Re: [Comments not Closed] - by SyS - 10.09.2016, 03:51
Re: [Comments not Closed] - by Simonotg - 10.09.2016, 03:53
Re: [Comments not Closed] - by JordanZaundd - 10.09.2016, 04:06
Re: [Comments not Closed] - by astanalol - 10.09.2016, 04:49
Re: [Comments not Closed] - by Shinja - 10.09.2016, 11:31
Re: [Comments not Closed] - by jlalt - 10.09.2016, 11:39
Re: [Comments not Closed] - by astanalol - 10.09.2016, 15:02
Re: [Comments not Closed] - by Shinja - 10.09.2016, 16:07
Re: [Comments not Closed] - by astanalol - 10.09.2016, 17:08

Forum Jump:


Users browsing this thread: 1 Guest(s)