- 0
2 comenzi
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Guest AsAsIn
am si eu niste probleme cu 2 comenzi
la /healall sa primeasca viata toti playerii. momentan primeste doar cel care foloseste comanda
if(strcmp(cmdtext, "/healall", true) == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1337) { format(string, sizeof(string), "Adminul v-a dat viata la toti.", sendername); SendClientMessageToAll(COLOR_GREEN, string); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { SetPlayerHealth(i, 100); } } } else { SendClientMessage(playerid, COLOR_RED, "Nu ai acces la aceasta comanda!"); } } else { SendClientMessage(playerid, COLOR_RED, "Trebuie sa te loghezi pentru a folosi comanda!"); } return 1; }si la /forum sa apara mesajul doar celui care foloseste comandaif(strcmp(cmdtext, "/forum", true) == 0) { for(new i = 0; i < MAX_PLAYERS; i ++) { SendClientMessage(i, COLOR_LIGHTBLUE, "Forumul comunitatii este www.***** !"); } return 1; }2 answers to this question
Recommended Posts