Preventing some commands in a different world
#3

Thank you Niixie.

Ok I tried it but for some reason it won't let me use any command no matter the VW I'm in. Obviously I must have put it in the wrong way. >.< Any ideas?

I used this short command as an example to test it.

pawn Код:
if(!strcmp("/heal", cmdtext, true))
    {
        new PlayerVW = GetPlayerVirtualWorld(playerid);
        if(PlayerVW == 4)
        SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100.0);
  }
    else
    {
    SendClientMessage(playerid, 0xFB0000FF,"SERVER: You cannot use this command here.");

        return 1;
  }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)