06.07.2016, 04:51
PHP код:
new Mapicon[2];
if(strcmp(cmd, "/Rota1", true) == 0)
{
SetPlayerMapIcon(playerid, Mapicon[0], 1968.9316,-1887.1934,13.5469, 38, 0, MAPICON_GLOBAL_CHECKPOINT );
return 1;
}
if(strcmp(cmd, "/Rota2", true) == 0)
{
RemovePlayerMapIcon(playerid, Mapicon[0]);
SetPlayerMapIcon(playerid, Mapicon[1], 1968.9316,-1887.1934,13.5469, 38, 0, MAPICON_GLOBAL_CHECKPOINT );
return 1;
}
if(strcmp(cmd, "/FecharRota", true) == 0)
{
for(new i = 0; i < 2; i++)
{
RemovePlayerMapIcon(playerid, Mapicon[i]); // ira fechar todas as rotas
}
return 1;
}