SA-MP Forums Archive
Lost CMD - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Lost CMD (/showthread.php?tid=489928)



Lost CMD - aDo7 - 24.01.2014

Hello Guys,
I got problem with Government Locker, i got the Commands but i can't see it, and when i stand on his range point.
i found Massage say [You aren't in range of your Senate lockers] i need help.
Here's the CMDS:

PHP код:
CMD:se(playeridparams[])
{
    if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 6)
    {
        if(
IsPlayerInRangeOfPoint(playerid,3,354.37,173.91,1008.38) && GetPlayerVirtualWorld(playerid) == 20041)// SENATE Duty
        
{
            
ShowPlayerDialog(playeridSEMENUDIALOG_STYLE_LIST"Government","Duty\nUniforms\nEquipment""Select""Cancel");
        }
        else
        {
            
SendClientMessageEx(playeridCOLOR_WHITE"You aren't in range of your Senate lockers.");
        }
    }
    return 
1;

I think i fixed the problem, i should change VW
PHP код:
(playerid) == 20041)// SENATE Duty 
To
PHP код:
(playerid) == 0)// SENATE Duty 



Re: Lost CMD - aDo7 - 24.01.2014

Pump anyone got Government locker cmds?


Re: Lost CMD - milanosie - 24.01.2014

I'm guessing you're not in range of the locker, that's just a wild guess though.
>.>

You're clearly either not in range of that point or your virtual world is not right.


Re: Lost CMD - aDo7 - 24.01.2014

Quote:
Originally Posted by milanosie
Посмотреть сообщение
I'm guessing you're not in range of the locker, that's just a wild guess though.
>.>

You're clearly either not in range of that point or your virtual world is not right.


i don't think so, because i using CMD
PHP код:
/gotoco 354.37 173.91 1008.38 3 
i mean am stand on it, i think i need new locker cmds..



Re: Lost CMD - milanosie - 24.01.2014

Quote:
Originally Posted by aDo7
Посмотреть сообщение
i don't think so, because i using CMD
PHP код:
/gotoco 354.37 173.91 1008.38 3 
i mean am stand on it, i think i need new locker cmds..[/I][/B]
pawn Код:
GetPlayerVirtualWorld(playerid) == 20041
Are you in that VW?


Re: Lost CMD - -Jason - 24.01.2014

PHP код:
CMD:se(playeridparams[])
{
    if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 6)
    {
    if(
IsPlayerInRangeOfPoint(playerid,3,354.37,173.91,1008.38) && GetPlayerVirtualWorld(playerid) == 20041)// SENATE Duty
        
{
            
ShowPlayerDialog(playeridSEMENUDIALOG_STYLE_LIST"Government","Duty\nUniforms\nEquipment""Select""Cancel");
                return 
0;
        }
        
        
            return 
SendClientMessageEx(playeridCOLOR_WHITE"You aren't in range of your Senate lockers.");
        
    }
    return 
0;

I'm not a pro scriper or so just trying to help, I heard from others that dialogs must return 0. Try this one out if it works


Re: Lost CMD - Don_Cage - 25.01.2014

Quote:
Originally Posted by -Jason
Посмотреть сообщение
PHP код:
CMD:se(playeridparams[])
{
    if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 6)
    {
    if(
IsPlayerInRangeOfPoint(playerid,3,354.37,173.91,1008.38) && GetPlayerVirtualWorld(playerid) == 20041)// SENATE Duty
        
{
            
ShowPlayerDialog(playeridSEMENUDIALOG_STYLE_LIST"Government","Duty\nUniforms\nEquipment""Select""Cancel");
                return 
0;
        }
        
        
            return 
SendClientMessageEx(playeridCOLOR_WHITE"You aren't in range of your Senate lockers.");
        
    }
    return 
0;

I'm not a pro scriper or so just trying to help, I heard from others that dialogs must return 0. Try this one out if it works
Yeah thats right but they mean in OnDialogResponse