/garage command
#1

Guys sorry for spam this is the last one...
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;
}
It will take the player and the vehicle.

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;
}
If that command is in then it will just spawn you and no vehicle. HELP
Reply


Messages In This Thread
/garage command - by Jordiee - 24.11.2011, 18:09
Re: /garage command - by =WoR=G4M3Ov3r - 24.11.2011, 18:20
Re: /garage command - by Jordiee - 24.11.2011, 18:22
Re: /garage command - by =WoR=G4M3Ov3r - 24.11.2011, 18:30
Re: /garage command - by Jordiee - 24.11.2011, 18:53
Re: /garage command - by Pharrel - 24.11.2011, 18:55
Re: /garage command - by Jordiee - 24.11.2011, 18:59
Re: /garage command - by =WoR=G4M3Ov3r - 24.11.2011, 18:59
Re: /garage command - by Pharrel - 24.11.2011, 19:01
Re: /garage command - by Jordiee - 24.11.2011, 19:01

Forum Jump:


Users browsing this thread: