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.
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:
The code, combined, checks if the player is in the LSPD and if they're at certain coordinates and in the correct interior.
pawn Код:
if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 && playerVariables[playerid][pGroup] != 0) {
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) {