04.01.2019, 17:06
Baixei uma FS, e preciso de algum comando que bloqueie e libere os seguintes comandos abaixo:
Obs: Pode ser um comando pros dois.
Desde jб agradeзo..
Obs: Pode ser um comando pros dois.
Код:
new id; if (strcmp(cmdtext, "/cstr", true) == 0) { if (GetPlayerWantedLevel(playerid) > 0) return SendClientMessage(playerid, -1, "{FFFF00}[ERRO] {009D4F}Vocк nгo pode usar este comando com nнvel de procurado!"); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "[MINIGAME-CS] %s juntou-se ao time Terrorista.",name); SendClientMessageToAll(0xFFFF00AA, string); SetPlayerPos(playerid, 3811.0046,-1040.1082,22.4528); SendClientMessage(playerid, COLOR_RED, "Seu time й Terrorista (vermelho)"); SetPlayerTeam(playerid, TEAM_RED); SetPlayerColor(playerid, COLOR_RED); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SetPlayerSkin(playerid, 179); GivePlayerWeapon(playerid, 24, 10000); GivePlayerWeapon(playerid, 25, 10000); GivePlayerWeapon(playerid, 32, 10000); GivePlayerWeapon(playerid, 33, 10000); GivePlayerWeapon(playerid, 30, 10000); GivePlayerMoney(playerid, -100); return 1;
Код:
if (strcmp(cmdtext, "/csct", true) == 0) { if (GetPlayerWantedLevel(playerid) > 0) return SendClientMessage(playerid, -1, "{FFFF00}[ERRO] {009D4F}Vocк nгo pode usar este comando com nнvel de procurado!"); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "[MINIGAME-CS] %s juntou-se ao time CT.",name); SendClientMessageToAll(0xFFFF00AA, string); SetPlayerPos(playerid, 3756.1958,-1022.8865,24.7479); SendClientMessage(playerid, COLOR_BLUE, "Seu time й o CT (azul)"); SetPlayerTeam(playerid, TEAM_BLUE); SetPlayerColor(playerid, COLOR_BLUE); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SetPlayerSkin(playerid, 285); GivePlayerWeapon(playerid, 22, 10000); GivePlayerWeapon(playerid, 27, 10000); GivePlayerWeapon(playerid, 29, 10000); GivePlayerWeapon(playerid, 31, 10000); GivePlayerWeapon(playerid, 34, 10000); GivePlayerMoney(playerid, -100); return 1;