if(strcmp("/gps", cmdtext, true, 10) == 0) { #if defined GpsUser new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); format(file, sizeof(file), PASTA_CONTAS, aname); if(dini_Int(file, "GpsP") == 1) if(!IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid, 0xE60000FF, "Vocк precisa estar em um veнculo!"); return 1; } if(GetPVarInt(playerid, "YEAH") == 1) { SendClientMessage(playerid, -1, "{E60000}Desligue o GPS antes {00CCFA}/gpsoff {E60000}para poder usar novamente."); return 1; } ShowPlayerDialog(playerid, GPSMenu, DIALOG_STYLE_LIST, "GPS", "Delegacias\nPrefeituras\nLojas e Diversos\nIgrejas\nHoteis\nHospitais\nUniversidades", "Selecionar", "Cancelar"); #else SendClientMessage(playerid, Azul, "Comando desativado temporбriamente."); #endif return 1; }
if(strcmp(cmdtext, "/comandosgps", true) == 0) { #if defined GpsUser new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); format(file, sizeof(file), PASTA_CONTAS, aname); if(dini_Int(file, "GpsP") == 1) { SendClientMessage(playerid, Azul, "{FFD700}Para ligar o GPS digite {FF0000}/Gps"); SendClientMessage(playerid, Azul, "{FFD700}Para desligar o GPS digite {FF0000}/Gpsoff"); } else { SendClientMessage(playerid, Vermelho, "Vocк nгo GPS, compre na loja de utilidades."); } #else SendClientMessage(playerid, Azul, "Comando desativado temporбriamente."); #endif return 1; }
if(strcmp("/gps", cmdtext, true, 10) == 0)
{
#if defined GpsUser
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(!dini_Int(file, "GpsP") == 1) return SendClientMessage(playerid, Vermelho, "Vocк nгo GPS, compre na loja de utilidades.");
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, 0xE60000FF, "Vocк precisa estar em um veнculo!");
return 1;
}
if(GetPVarInt(playerid, "YEAH") == 1)
{
SendClientMessage(playerid, -1, "{E60000}Desligue o GPS antes {00CCFA}/gpsoff {E60000}para poder usar novamente.");
return 1;
}
ShowPlayerDialog(playerid, GPSMenu, DIALOG_STYLE_LIST, "GPS", "Delegacias\nPrefeituras\nLojas e Diversos\nIgrejas\nHoteis\nHospitais\nUniversidades", "Selecionar", "Cancelar");
#else
SendClientMessage(playerid, Azul, "Comando desativado temporбriamente.");
#endif
return 1;
}
pawn Код:
|