Help - How Would I Do This?
#5

This Doesn't Work Either. Now anybody can do it.
pawn Код:
if(strcmp("/lock", cmdtext, true, 5) == 0) {
        new hid = 0;
        while(hid < MAX_HOUSES) {
            if(IsPlayerInRangeOfPoint(playerid, 5, hPickupX[hid], hPickupY[hid], hPickupZ[hid]) == 1) {
                if(!strcmp(pName[playerid], hOwner[hid], true)) {
                    hLock[hid] = 1;
                    SendClientMessage(playerid, yellow, "Your House Was Locked");
                }
                else SendClientMessage(playerid, yellow, "You Can't Lock This House");
                break;
            }
            hid++;
        }
        return 1;
    }
   
    if(strcmp("/unlock", cmdtext, true, 7) == 0) {
        new hid = 0;
        while(hid < MAX_HOUSES) {
            if(IsPlayerInRangeOfPoint(playerid, 5, hPickupX[hid], hPickupY[hid], hPickupZ[hid]) == 1) {
                if(!strcmp(pName[playerid], hOwner[hid], true)) {
                    hLock[hid] = 0;
                    SendClientMessage(playerid, yellow, "Your House Was Unlocked");
                }
                else SendClientMessage(playerid, yellow, "You Can't Unlock This House");
                break;
            }
            hid++;
        }
        return 1;
    }
Reply


Messages In This Thread
Help - How Would I Do This? - by Tim_Ethen - 06.11.2010, 05:03
Re: Help - How Would I Do This? - by -Rebel Son- - 06.11.2010, 05:08
Re: Help - How Would I Do This? - by Tim_Ethen - 06.11.2010, 05:17
Respuesta: Help - How Would I Do This? - by CuervO - 06.11.2010, 05:27
Re: Help - How Would I Do This? - by Tim_Ethen - 06.11.2010, 05:32

Forum Jump:


Users browsing this thread: 5 Guest(s)