Area 69 X.k19: Password

// OnGameModeInit SetTimer("UpdateArea69Password", 300000, 1); // update every 5 min UpdateArea69Password();

if(strcmp(inputPass, currentPassword) == 0) { SetPlayerPos(playerid, x, y, z); // Area 69 interior/restricted zone SendClientMessage(playerid, 0x00FF00FF, "Access granted to Area 69."); LogAccess(playerid, true); } else { SendClientMessage(playerid, 0xFF0000FF, "Invalid password."); LogAccess(playerid, false); } return 1; } area 69 x.k19 password

// Command to enter Area 69 CMD:enterarea69(playerid, params[]) { new inputPass[20]; if(sscanf(params, "s[20]", inputPass)) return SendClientMessage(playerid, -1, "Usage: /enterarea69 [password]"); // OnGameModeInit SetTimer("UpdateArea69Password"

¿Le ha resultado útil este artículo?