01.12.2010, 14:53
fiz de 1 metodo diferente, fiz o /equipm
com o comando reservado definido
etc..., PlayerToPoint, ai depois ShowPlayerDialog
ai no OnPlayerKeyStateChange
if((newkeys == 16))
{
if(gTeam[playerid] == 1 || IsACop(playerid) || IsAPre(playerid) || IsAPFx(playerid))
{
if(PlayerToPoint(8.0,playerid,1529.82,-1661.18,6.22))
OnPlayerCommandText(playerid,"/equipm");
}
}
return 0;
}
com o comando reservado definido
etc..., PlayerToPoint, ai depois ShowPlayerDialog
ai no OnPlayerKeyStateChange
if((newkeys == 16))
{
if(gTeam[playerid] == 1 || IsACop(playerid) || IsAPre(playerid) || IsAPFx(playerid))
{
if(PlayerToPoint(8.0,playerid,1529.82,-1661.18,6.22))
OnPlayerCommandText(playerid,"/equipm");
}
}
return 0;
}