10.08.2014, 16:51
hey guys, i'm trying to make a command where if the players virtual world id is higher than 1, they cannot use the command.
i have a /joinrace command and it only bugs when someone in a virtual world tries to join the race.
why would someone be in a virtual world you might ask? well for my script i have multiple burger shots and they all share the same interior/location but each of them have different virtual world ids.
how would i go about this? is it similar to checking if a player has enough money, etc?
would that work?
i have a /joinrace command and it only bugs when someone in a virtual world tries to join the race.
why would someone be in a virtual world you might ask? well for my script i have multiple burger shots and they all share the same interior/location but each of them have different virtual world ids.
how would i go about this? is it similar to checking if a player has enough money, etc?
Код:
if(GetPlayerVirtualWorld(playerid) > 0) return SendClientMessage(playerid, 0xFFFFFF, "You can't Join the Race in this Interior!");