GabyRo.off Posted December 16, 2021 Report Share Posted December 16, 2021 cum pot face o comanda /snow si sa apara fulgi de zapada pe sv gen /snow pentru o activa si dezactiva Quote Link to comment Share on other sites More sharing options...
Hackeru Suprem Posted November 1, 2023 Report Share Posted November 1, 2023 new SnowEnabled[MAX_PLAYERS]; CMD:snow(playerid, params[]) { if (!IsPlayerConnected(playerid)) return 0; if (strlen(params) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "Usage: /snow [on|off]"); return 1; } new option[MAX_STRING]; if(sscanf(params, "s", option)) { if (strcmp(option, "on", true) == 0) { SnowEnabled[playerid] = 1; SendClientMessage(playerid, COLOR_GREEN, "Snow is now enabled."); return 1; } else if (strcmp(option, "off", true) == 0) { SnowEnabled[playerid] = 0; SendClientMessage(playerid, COLOR_GREEN, "Snow is now disabled."); return 1; } } SendClientMessage(playerid, COLOR_YELLOW, "Usage: /snow [on|off]"); return 1; } public OnPlayerUpdate(playerid) { if (SnowEnabled[playerid]) { SendClientMessage(playerid, -1, "It's snowing!"); } return 1; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.