Lost CMD
#1

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 
Reply
#2

Pump anyone got Government locker cmds?
Reply
#3

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.
Reply
#4

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..
Reply
#5

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?
Reply
#6

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
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)