09.11.2016, 16:16
See at your last command "hgate" and "hg" and replace it for:
Change "yourcommand" and "yourcommand2" for your commands for that gate.
PHP код:
if(strcmp(cmd, "/hgate", false) == 0 || strcmp(cmd, "/hg", false) == 0)
{
if(PlayerInfo[playerid][pMember] == 34 || PlayerInfo[playerid][pLeader] == 34)
{
if(PlayerToPoint(10.0, playerid, -542.4000, 334.0000, 4.1000))
{
MoveObject(casa34, -542.4000, 334.0000, -1.7091, 3);
SetTimer("Casa34" ,5000 ,false);
}
}
return 1;
}
if(strcmp(cmd, "/yourcommand", false) == 0 || strcmp(cmd, "/yourcommand2", false) == 0)
{
if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
{
if(PlayerToPoint(10.0, playerid, 1499.6000000,-699.4000200,96.5000000))
{
MoveObject(casa20, 1499.6000000,-699.4000200,90.2000000, 3);
SetTimer("Casa20" ,5000 ,false);
}
}
return 1;
}