Posts: 2,220
Threads: 154
Joined: Jul 2009
Reputation:
0
You aren't even showing any script you're using... What is your job array?
Max_Coldheart
Unregistered
Like Jochemd saied, we need the array or we cant help.
Posts: 316
Threads: 61
Joined: Sep 2011
Reputation:
0
What do you mean the array, im new to coding >.<
Posts: 6,129
Threads: 36
Joined: Jan 2009
22.11.2011, 16:40
(
Последний раз редактировалось Calgon; 22.11.2011 в 16:50.
Причина: ungrateful sod, not helping you again
)
vxrp2 relies on group types for groups, especially for the LSPD, as it is a group, not a job.
pawn Код:
if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 && playerVariables[playerid][pGroup] != 0) {
Take a look at the code above, that's from the /lspd command. It should be common sense to look for functions that use similar code, you'll be able to understand from it and try make what you're trying to do.
You'll also notice code below in the /lspd command code:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 5, 264.1055,109.8094,1004.6172) && GetPlayerInterior(playerid) == 10) {
The code, combined, checks if the player is in the LSPD and if they're at certain coordinates and in the correct interior.
Posts: 316
Threads: 61
Joined: Sep 2011
Reputation:
0
Ok I will try and make a command for this, and if I get errors I will post here.