SA-MP Forums Archive
gate - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: gate (/showthread.php?tid=322316)



gate - Dw.UsHer - 01.03.2012

how to make hats Command /оpen but I just can not open and the key to give to others and they can open and close


Re: gate - Dw.UsHer - 01.03.2012

any help me please ??


Re: gate - milanosie - 01.03.2012

Show us the code.


Re: gate - niels44 - 01.03.2012

eehm more explaination? i dont understand ya, and show us the code


Re: gate - Dw.UsHer - 01.03.2012

no need cords please give CMD I alone will insert the cords

Please Help ME


Re: gate - Dw.UsHer - 01.03.2012

if(strcmp(cmdtext,"/opengate", true) == 0)
{
if (gTeam[playerid] == TEAM_GROVE)
{
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436))
{
MoveObject(hqgate, 289.919067, -1547.427734, 27.193420, 1.500000);
return 1;
}
}
}

if(strcmp(cmdtext,"/closegate", true) == 0)
{
if (gTeam[playerid] == TEAM_GROVE)
{
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436))
{
MoveObject(hqgate, 283.870544, -1543.398804, 27.193420, 1.500000);
return 1;
}
}
}

here and how to make a boss that only one player that you can open the gate


Re: gate - Ubuntu - 01.03.2012

Quote:
Originally Posted by Dw.UsHer
Посмотреть сообщение
if(strcmp(cmdtext,"/opengate", true) == 0)
{
if (gTeam[playerid] == TEAM_GROVE)
{
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436))
{
MoveObject(hqgate, 289.919067, -1547.427734, 27.193420, 1.500000);
return 1;
}
}
}

if(strcmp(cmdtext,"/closegate", true) == 0)
{
if (gTeam[playerid] == TEAM_GROVE)
{
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436))
{
MoveObject(hqgate, 283.870544, -1543.398804, 27.193420, 1.500000);
return 1;
}
}
}

here and how to make a boss that only one player that you can open the gate
Instead of (gTeam) why not using names?

Like if his name is "John_Smith" then he can open the gates.