Onplayercommandrececieved = Server Restarts...
#5

Code:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(playerData[playerid][canUseCommands] == false || playerData[playerid][playerLevel] <= 0) return SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SERVER] {FFFFFF}Please wait before using another command.");
if(playerData[playerid][hasSpawned] == false || playerData[playerid][playerLevel] <= 0)return SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SERVER] {FFFFFF}You cannot use commands while you're not spawned.");
playerData[playerid][canUseCommands] = false;
playerData[playerid][commandTimer] = SetTimerEx("command", 1020, false, "i", playerid);
new loggingString[256];
format(loggingString, sizeof(loggingString), "%s used command: %s", playerData[playerid][playerNamee], cmdtext);
writeInLog("commandLog.html", loggingString);
return 1;
}
Try this one
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)