Can anyone please help me? [+REP]
#4

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    //OnShadowCommand(playerid, cmdtext);
    if(PlayerInfo[playerid][Logged] == false)
        return SendClientMessage(playerid, 0xFFFFFFAA, "{3333DD}-- Commands:{FFFFFF} You may not use any commands before logging in.");
    dcmd(help, 4, cmdtext);
    dcmd(o, 1, cmdtext);
    dcmd(do, 2, cmdtext);
    dcmd(me, 2, cmdtext);
    dcmd(b, 1, cmdtext);
    dcmd(s, 1, cmdtext);
    dcmd(shelter, 7, cmdtext);
    dcmd(deposit, 7, cmdtext);
    dcmd(withdraw, 8, cmdtext);
    dcmd(balance, 7, cmdtext);
    dcmd(pm, 2, cmdtext);
    dcmd(water, 5, cmdtext);
    dcmd(snake, 5, cmdtext);
    dcmd(changeclothes, 13, cmdtext);
    dcmd(admins, 6, cmdtext);
    dcmd(setadmin, 8, cmdtext);
    dcmd(ban, 3, cmdtext);
    dcmd(kick, 4, cmdtext);
    dcmd(adminhelp, 9, cmdtext);
    dcmd(drop, 4, cmdtext);
    dcmd(kill, 4, cmdtext);
    dcmd(goto, 4, cmdtext);
    dcmd(get, 3, cmdtext);
    dcmd(giveweapon, 10, cmdtext);
    dcmd(setskin, 7, cmdtext);
    dcmd(lock, 4, cmdtext);
    dcmd(buy, 3, cmdtext);
    dcmd(house, 5, cmdtext);
    if (strcmp("/enter", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,10, 52.0361,2503.7595,16.4922))
        {
            SetPlayerPos(playerid, 133.0946,2489.1416,16.4922);
            SetPlayerInterior(playerid, 0);
            //SetPlayerVirtualWorld(playerid, VIRTUALWORLD); // Optional
            SetCameraBehindPlayer(playerid);
        }
        return 1;
    }
    return SendClientMessage(playerid, 0xFFFFFFAA, "{3333DD}-- Commands:{FFFFFF} That command does not exist.");
}
Reply


Messages In This Thread
Can anyone please help me? [+REP] - by kubz - 06.01.2012, 14:51
Re: Can anyone please help me? [+REP] - by sabretur - 06.01.2012, 15:59
Re: Can anyone please help me? [+REP] - by kubz - 06.01.2012, 18:25
Re: Can anyone please help me? [+REP] - by sabretur - 07.01.2012, 11:17

Forum Jump:


Users browsing this thread: 4 Guest(s)