I have no idea about GetTickCount() but you can use gettime() instead.
PHP Code:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
? ? if (!IsPlayerConnected(playerid) || playerid == INVALID_PLAYER_ID)
{
return SendClientMessage(playerid, COLOR_INVALID, "You are not connected."), false;
}
if (gettime() < timeUsedCommand[playerid])
? ? {
return SendClientMessage(playerid, COLOR_GRAD1, "Wait 2 seconds to retype a command!"), false;
? ? }
timeUsedCommand[playerid] = gettime();
? ? return 1;
}