09.07.2016, 23:33
Quote:
if(AllowM6[playerid] == 1) { SendClientMessage(playerid, Rojo, "Tienes que esperar 5 Minutos!"); return 1; } new name[MAX_PLAYER_NAME], string[45+MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s esta robando", name); TextDrawSetString(Robando, string); TextDrawShowForAll(Robando); Conteo1[playerid] = 30; Cantidad[playerid] = 0; SetTimerEx("fuera", 5000, 0, "d", playerid); Conteo2[playerid] = SetTimerEx("robo", 1000, 1, "i", playerid); GameTextForPlayer(playerid, "~b~Robando ~w~tienda",1000,5); //Aparecemos un mensaje en la pantalla del que roba durante 5 segundos AllowM6[playerid] = 1; SendClientMessage(playerid, Rojo, "Tienes que esperar 20 Segundos Para Que el Robo se ejecute"); } |
Quote:
if(checkpointid == clukin3) { SendClientMessage(playerid, 0x33AAFFFF, ""azul""GLS": "blanco"Saliste Del Checkpoint Se cancelo el robo"); KillTimer(Conteo2[playerid]); AllowM6[playerid] = 1; SetPlayerMoney(playerid, -5000); } |