[Working]And Not [Working]Help Me
#1

Hello Guys

have problems now
Quote:

ERROR:you must be in the checkpoints at idlewood pizza to use this command!

this message when im in Seven My Pos Right and i cant start robing
But Sexshop Working fine in robing i can start robing on sexshop this my cmd
PHP код:
CMD:robstoreplayeridparams[ ] )
{
    if(
RobStore)
    {
        if ( 
pRobbingPplayerid ] )
                return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You are already robbing Idlewood Pizza" );
        if ( !
IsPlayerInRangeOfPointplayerid3.0, -23.4826,-55.6319,1003.5469 ) )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You must be in the checkpoint at Idlewood Pizza to use this command!" );
        if ( 
SevenRobbed )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} Idlewood Pizza has been robbed recently, please wait patiently!" );
        
robTimerPplayerid ] = SetTimerEx"robPizza"30000false"i"playerid );
        
SendClientMessageplayeridINFO"[ROBBERY INFO] You have started a robbery, it will last 30 seconds. Do not leave the checkpoint!" );
        
pRobbingPplayerid ] = true;
        
SevenRobbed true;
        new
            
szStr128 ],
            
usrName24 ];
        
GetPlayerNameplayeridusrName24 );
        
formatszStr128"[ROBBERY] %s has began a robbery at Idlewood Pizza!"usrName );
        
SendClientMessageToAllROBszStr );
        
GameTextForPlayerplayerid"~g~Robbery in process~n~~r~Do not leave the checkpoint!"30000);
        
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid) +5);
    }
    else
    {
        if ( 
pRobbingPplayerid ] )
                return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You are already robbing Idlewood Pizza" );
        if ( !
IsPlayerInRangeOfPointplayerid3.0, -104.1407,-22.6708,1000.7188 ) )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You must be in the checkpoint at Idlewood Pizza to use this command!" );
        if ( 
SexShopRobbed )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} Idlewood Pizza has been robbed recently, please wait patiently!" );
        
robTimerPplayerid ] = SetTimerEx"robPizza"30000false"i"playerid );
        
SendClientMessageplayeridINFO"[ROBBERY INFO] You have started a robbery, it will last 30 seconds. Do not leave the checkpoint!" );
        
pRobbingPplayerid ] = true;
        
SevenRobbed true;
        new
            
szStr128 ],
            
usrName24 ];
        
GetPlayerNameplayeridusrName24 );
        
formatszStr128"[ROBBERY] %s has began a robbery at Idlewood Pizza!"usrName );
        
SendClientMessageToAllROBszStr );
        
GameTextForPlayerplayerid"~g~Robbery in process~n~~r~Do not leave the checkpoint!"30000);
        
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid) +5);
    }
    return 
1;

Help +Rep Thx
Reply
#2

any one help me please
Reply
#3

not one helped me
i cant Robing Frist One
i Can Robing 2nd working fine
Reply
#4

Just change the coordinates of IsPlayerInRangeOfPoint to sexshop's interior.
Reply
#5

Quote:
Originally Posted by Diabloa
Посмотреть сообщение
Just change the coordinates of IsPlayerInRangeOfPoint to sexshop's interior.
its diffrents
PHP код:
    cp_SexShop CreateDynamicCP(-104.1407,-22.6708,1000.71883.0, .interiorid 3);
    
cp_Seven CreateDynamicCP(-23.4826,-55.6319,1003.54693.0, .interiorid 6); 
PHP код:
if ( !IsPlayerInRangeOfPointplayerid3.0, -104.1407,-22.6708,1000.7188 ) ) 
PHP код:
if ( !IsPlayerInRangeOfPointplayerid3.0, -23.4826,-55.6319,1003.5469 ) ) 
Reply
#6

Hmm, I don't really know what's the problem then.
Reply
#7

Quote:
Originally Posted by Diabloa
Посмотреть сообщение
Hmm, I don't really know what's the problem then.
this my full code
PHP код:
#include <a_samp>
#include <Streamer>
#include <zcmd>
#define RED -1
#define ROB -1
#define INFO -1
forward robSevenplayerid ); //Add this to the top of your script under your includes!
forward robSexShopplayerid ); //Add this to the top of your script under your includes!
//IDLEWOOD PIZZA
new
        
robTimerPMAX_PLAYERS ],
        
cp_Seven,
        
cp_SexShop,
        
boolpRobbingPMAX_PLAYERS ],
        
boolSevenRobbed;
        new 
bool:SexShopRobbed;
        new 
RobStore;
public 
OnGameModeInit()
{
    
cp_SexShop CreateDynamicCP(-104.1407,-22.6708,1000.71883.0, .interiorid 3);
    
cp_Seven CreateDynamicCP(-23.4826,-55.6319,1003.54693.0, .interiorid 6);
    return 
1;
}
public 
OnPlayerEnterDynamicCPplayeridcheckpointid )
{
    if( 
pRobbingPplayerid ] )
    {
            if ( 
checkpointid == cp_Seven )
            {
                
pRobbingPplayerid ] = false;
                
KillTimerrobTimerPplayerid ] );
                
SevenRobbed false;
                
GameTextForPlayerplayerid"~r~You have failed the robbery!"1000);
            }
    }
    if( 
pRobbingPplayerid ] )
    {
            if ( 
checkpointid == cp_SexShop )
            {
                
pRobbingPplayerid ] = false;
                
KillTimerrobTimerPplayerid ] );
                
SevenRobbed false;
                
GameTextForPlayerplayerid"~r~You have failed the robbery!"1000);
            }
    }
    return 
true;
}
CMD:robstoreplayeridparams[ ] )
{
    if(
RobStore)
    {
        if ( 
pRobbingPplayerid ] )
                return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You are already robbing Idlewood Pizza" );
        if ( !
IsPlayerInRangeOfPointplayerid3.0, -23.4826,-55.6319,1003.5469 ) )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You must be in the checkpoint at Idlewood Pizza to use this command!" );
        if ( 
SevenRobbed )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} Idlewood Pizza has been robbed recently, please wait patiently!" );
        
robTimerPplayerid ] = SetTimerEx"robPizza"30000false"i"playerid );
        
SendClientMessageplayeridINFO"[ROBBERY INFO] You have started a robbery, it will last 30 seconds. Do not leave the checkpoint!" );
        
pRobbingPplayerid ] = true;
        
SevenRobbed true;
        new
            
szStr128 ],
            
usrName24 ];
        
GetPlayerNameplayeridusrName24 );
        
formatszStr128"[ROBBERY] %s has began a robbery at Idlewood Pizza!"usrName );
        
SendClientMessageToAllROBszStr );
        
GameTextForPlayerplayerid"~g~Robbery in process~n~~r~Do not leave the checkpoint!"30000);
        
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid) +5);
    }
    else
    {
        if ( 
pRobbingPplayerid ] )
                return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You are already robbing Idlewood Pizza" );
        if ( !
IsPlayerInRangeOfPointplayerid3.0, -104.1407,-22.6708,1000.7188 ) )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} You must be in the checkpoint at Idlewood Pizza to use this command!" );
        if ( 
SexShopRobbed )
            return 
SendClientMessageplayeridRED"ERROR:{FFFFFF} Idlewood Pizza has been robbed recently, please wait patiently!" );
        
robTimerPplayerid ] = SetTimerEx"robPizza"30000false"i"playerid );
        
SendClientMessageplayeridINFO"[ROBBERY INFO] You have started a robbery, it will last 30 seconds. Do not leave the checkpoint!" );
        
pRobbingPplayerid ] = true;
        
SevenRobbed true;
        new
            
szStr128 ],
            
usrName24 ];
        
GetPlayerNameplayeridusrName24 );
        
formatszStr128"[ROBBERY] %s has began a robbery at Idlewood Pizza!"usrName );
        
SendClientMessageToAllROBszStr );
        
GameTextForPlayerplayerid"~g~Robbery in process~n~~r~Do not leave the checkpoint!"30000);
        
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid) +5);
    }
    return 
1;
}
public 
robSevenplayerid )
{
        new
            
randMoney random96000 );
        
GivePlayerMoneyplayeridrandMoney );
        new
            
szStr128 ],
            
szStr1[128],
            
usrName24 ];
        
GetPlayerNameplayeridusrName24 );
        
formatszStr128"[ROBBERY] %s has robbed $%d from Idlewood Pizza!"usrNamerandMoney );
        
SendClientMessageToAllROBszStr );
        
formatszStr128"[ROBBERY INFO] Robbery succesfull! You have earned $%d and 1 score from the robbery."randMoney );
        
SendClientMessageplayeridINFOszStr );
        
pRobbingPplayerid ] = false;
        
SetTimer"pizzaDelay"90000false );
        
format(szStr1sizeof (szStr1), "~g~You have succesfuly robbed $%d from Idlewood Pizza!"randMoney);
        
GameTextForPlayerplayeridszStr13000);
        
SetPlayerScore(playeridGetPlayerScore(playerid) +);
        
}
public 
robSexShopplayerid )
{
        new
            
randMoney random96000 );
        
GivePlayerMoneyplayeridrandMoney );
        new
            
szStr128 ],
            
szStr1[128],
            
usrName24 ];
        
GetPlayerNameplayeridusrName24 );
        
formatszStr128"[ROBBERY] %s has robbed $%d from Idlewood Pizza!"usrNamerandMoney );
        
SendClientMessageToAllROBszStr );
        
formatszStr128"[ROBBERY INFO] Robbery succesfull! You have earned $%d and 1 score from the robbery."randMoney );
        
SendClientMessageplayeridINFOszStr );
        
pRobbingPplayerid ] = false;
        
SetTimer"pizzaDelay"90000false );
        
format(szStr1sizeof (szStr1), "~g~You have succesfuly robbed $%d from Idlewood Pizza!"randMoney);
        
GameTextForPlayerplayeridszStr13000);
        
SetPlayerScore(playeridGetPlayerScore(playerid) +);
}
forward SexShopDelay( );
public 
SexShopDelay( )
{
    
SevenRobbed false;
    return 
true;
}
forward SevenDelay( );
public 
SevenDelay( )
{
    
SevenRobbed false;
    return 
true;

Reply
#8

if ( IsPlayerInRangeOfPoint( playerid, 3.0, -104.1407,-22.6708,1000.7188 ) )
return SendClientMessage( playerid, RED, "ERROR:{FFFFFF} You must be in the checkpoint at Idlewood Pizza to use this command!" );
Reply
#9

Quote:
Originally Posted by bigboy81
Посмотреть сообщение
if ( IsPlayerInRangeOfPoint( playerid, 3.0, -104.1407,-22.6708,1000.7188 ) )
return SendClientMessage( playerid, RED, "ERROR:{FFFFFF} You must be in the checkpoint at Idlewood Pizza to use this command!" );
what u mean
i Can See Checkpoints in Seven And this Pos Right But not Rob it why idk
and the SexShop Working
Reply
#10

why its not load the robing seven ?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)