02.05.2013, 18:21
Ve se funciona
PHP код:
new bool:xLiberou; // TOPO
COMMAND:liberar ( playerid )
{
SendClientMessage ( playerid, -1, "Vocк ativou o teleporte" ) ;
xLiberou = true ;
return 1;
}
COMMAND:bloquear ( playerid )
{
SendClientMessage ( playerid, -1, "Vocк bloqueou o teleporte" ) ;
xLiberou = false ;
return 1;
}
public OnPlayerClickMap ( playerid, Float:fX, Float:fY, Float:fZ )
{
if ( xLiberou == true )
{
SetPlayerPosFindZ ( playerid, fX, fY, fZ ) ;
}
return 1;
}

