24.11.2011, 18:09
Guys sorry for spam this is the last one...
When I do:
It will take the player and the vehicle.
So I decided to make another command /egarage:
If that command is in then it will just spawn you and no vehicle. HELP
When I do:
Код:
CMD:garage(playerid, params[]) { if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1) { if(IsPlayerInRangeOfPoint(playerid, 5, -2286.9431,2284.1853,4.9731)) SetPlayerPos(playerid, 1588.7703,-1640.3796,13.1978); SetVehiclePos(GetPlayerVehicleID(playerid),1588.6764,-1643.0651,12.5711); } else if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 0) SendClientMessage(playerid, COLOR_RED, "You are not in the PD, Therefore cannot enter the garage."); return 1; }
So I decided to make another command /egarage:
Код:
CMD:egarage(playerid, params[]) { if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1) { if(IsPlayerInRangeOfPoint(playerid, 5, 1588.4303,-1640.3314,13.1932)) SetPlayerPos(playerid, -2286.1479,2280.2766,4.9684); SetVehiclePos(GetPlayerVehicleID(playerid),-2286.1479,2280.2766,4.9684); } else if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 0) SendClientMessage(playerid, COLOR_RED, "You are not in the PD, Therefore cannot enter the garage."); return 1; }